Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Codec.Ktx.KeyValue
Synopsis
- type KeyValueData = Map Text Value
- pattern KTXcubemapIncomplete :: Text
- pattern KTXanimData :: Text
- pattern KTXastcDecodeMode :: Text
- pattern KTXwriterScParams :: Text
- pattern KTXwriter :: Text
- pattern KTXswizzle :: Text
- pattern KTXmetalPixelFormat :: Text
- pattern KTXdxgiFormat__ :: Text
- pattern KTXglFormat :: Text
- pattern KTXorientation :: Text
- newtype Value = Value ByteString
- text :: Text -> Value
- bytes :: ByteString -> Value
- number :: (Num a, Show a) => a -> Value
- class FromValue a where
- textual :: KeyValueData -> Map Text Text
- getDataLe :: Int -> Get KeyValueData
- getData :: Get Word32 -> Int -> Get KeyValueData
- putDataLe :: KeyValueData -> Put
- putData :: (Word32 -> Put) -> KeyValueData -> Put
Documentation
Predefined keys
pattern KTXcubemapIncomplete :: Text Source #
pattern KTXanimData :: Text Source #
pattern KTXastcDecodeMode :: Text Source #
pattern KTXwriterScParams :: Text Source #
pattern KTXswizzle :: Text Source #
pattern KTXmetalPixelFormat :: Text Source #
pattern KTXdxgiFormat__ :: Text Source #
pattern KTXglFormat :: Text Source #
pattern KTXorientation :: Text Source #
Writing
Constructors
Value ByteString |
Instances
Generic Value Source # | |
Show Value Source # | |
Eq Value Source # | |
type Rep Value Source # | |
Defined in Codec.Ktx.KeyValue type Rep Value = D1 ('MetaData "Value" "Codec.Ktx.KeyValue" "ktx-codec-0.0.2.1-AFX5voQ2mUt7MGimSGTUau" 'True) (C1 ('MetaCons "Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) |
bytes :: ByteString -> Value Source #
Reading
Binary operations
putDataLe :: KeyValueData -> Put Source #