gi-gstbase-0.1.6.13: GstBase bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstBase.Structs.ByteWriter

Contents

Description

#GstByteWriter provides a byte writer and reader that can write/read different integer and floating point types to/from a memory buffer. It provides functions for writingreading signedunsigned, little/big endian integers of 8, 16, 24, 32 and 64 bits and functions for reading little/big endian floating points numbers of 32 and 64 bits. It also provides functions to write/read NUL-terminated strings in various character encodings.

Synopsis

Exported types

newtype ByteWriter Source

Instances

((~) * info (ResolveByteWriterMethod t ByteWriter), MethodInfo * info ByteWriter p) => IsLabel t (ByteWriter -> p) Source 

Methods

fromLabel :: Proxy# Symbol t -> ByteWriter -> p

((~) * info (ResolveByteWriterMethod t ByteWriter), MethodInfo * info ByteWriter p) => IsLabelProxy t (ByteWriter -> p) Source 
((~) (TYPE Lifted) signature (m (Ptr Word8)), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterResetAndGetDataMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m Buffer), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterResetAndGetBufferMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterResetMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word8 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint8MethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word64 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint64LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word64 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint64BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint32LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint32BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint24LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint24BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word16 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint16LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word16 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutUint16BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature ([Text] -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutStringUtf8MethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature ([Word32] -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutStringUtf32MethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature ([Word16] -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutStringUtf16MethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int8 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt8MethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int64 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt64LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int64 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt64BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt32LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt32BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt24LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt24BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int16 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt16LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Int16 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutInt16BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Double -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutFloat64LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Double -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutFloat64BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Float -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutFloat32LeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Float -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutFloat32BeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (ByteString -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutDataMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Buffer -> Word64 -> Int64 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterPutBufferMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> Bool -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterInitWithSizeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (ByteString -> Bool -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterInitWithDataMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterInitMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m Word32), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterGetRemainingMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m Word8), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterFreeAndGetDataMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m Buffer), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterFreeAndGetBufferMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterFreeMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word8 -> Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterFillMethodInfo ByteWriter signature Source 
((~) (TYPE Lifted) signature (Word32 -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ByteWriterEnsureFreeSpaceMethodInfo ByteWriter signature Source 

newZeroByteWriter :: MonadIO m => m ByteWriter Source

Construct a ByteWriter struct initialized to zero.

Methods

byteWriterEnsureFreeSpace

byteWriterFill

byteWriterFree

byteWriterFreeAndGetBuffer

byteWriterFreeAndGetData

byteWriterGetRemaining

byteWriterInit

byteWriterInitWithData

byteWriterInitWithSize

byteWriterPutBuffer

byteWriterPutData

byteWriterPutFloat32Be

byteWriterPutFloat32Le

byteWriterPutFloat64Be

byteWriterPutFloat64Le

byteWriterPutInt16Be

byteWriterPutInt16Le

byteWriterPutInt24Be

byteWriterPutInt24Le

byteWriterPutInt32Be

byteWriterPutInt32Le

byteWriterPutInt64Be

byteWriterPutInt64Le

byteWriterPutInt8

byteWriterPutStringUtf16

byteWriterPutStringUtf32

byteWriterPutStringUtf8

byteWriterPutUint16Be

byteWriterPutUint16Le

byteWriterPutUint24Be

byteWriterPutUint24Le

byteWriterPutUint32Be

byteWriterPutUint32Le

byteWriterPutUint64Be

byteWriterPutUint64Le

byteWriterPutUint8

byteWriterReset

byteWriterResetAndGetBuffer

byteWriterResetAndGetData

Properties

AllocSize

Fixed

Owned

Parent