ktx-codec-0.0.2.1: Khronos texture format
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Ktx.KeyValue

Synopsis

Documentation

Predefined keys

pattern KTXwriter :: Text Source #

pattern KTXswizzle :: Text Source #

Writing

newtype Value Source #

A wrapper for raw data.

Use FromValue/ToValue to process.

Constructors

Value ByteString 

Instances

Instances details
Generic Value Source # 
Instance details

Defined in Codec.Ktx.KeyValue

Associated Types

type Rep Value :: Type -> Type #

Methods

from :: Value -> Rep Value x #

to :: Rep Value x -> Value #

Show Value Source # 
Instance details

Defined in Codec.Ktx.KeyValue

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value Source # 
Instance details

Defined in Codec.Ktx.KeyValue

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

type Rep Value Source # 
Instance details

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)))

number :: (Num a, Show a) => a -> Value Source #

Reading

class FromValue a where Source #

Methods

fromValue :: Value -> Maybe a Source #

Instances

Instances details
FromValue ByteString Source # 
Instance details

Defined in Codec.Ktx.KeyValue

FromValue Text Source # 
Instance details

Defined in Codec.Ktx.KeyValue

textual :: KeyValueData -> Map Text Text Source #

Extract all valid (null-terminated utf8) values.

Binary operations