gstbase.bit_writer

Module for [BitWriter] class

class BitWriter

Types 1

#GstBitWriter provides a bit writer that can write any number of bits into a memory buffer. It provides functions for writing any number of bits into 8, 16, 32 and 64 bit variables.

Fields
GstBitWriter _cInstance
Methods
void * _cPtr()
uint bitSize() @propertyGet `bitSize` field. Returns: Size of written @data in bits
void bitSize(uint propval) @propertySet `bitSize` field. Params: propval = Size of written @data in bits
bool alignBytes(ubyte trailingBit)Write trailing bit to align last byte of data. trailing_bit can only be 1 or 0.
gst.buffer.Buffer freeAndGetBuffer()Frees bitwriter without destroying the internal data, which is returned as #GstBuffer.
uint getSize()Get size of written data Returns: size of bits written in data
bool putBitsUint16(ushort value, uint nbits)Write nbits bits of value to #GstBitWriter.
bool putBitsUint32(uint value, uint nbits)Write nbits bits of value to #GstBitWriter.
bool putBitsUint64(ulong value, uint nbits)Write nbits bits of value to #GstBitWriter.
bool putBitsUint8(ubyte value, uint nbits)Write nbits bits of value to #GstBitWriter.
bool putBytes(ubyte[] data)Write nbytes bytes of data to #GstBitWriter.
void reset()Resets bitwriter and frees the data if it's owned by bitwriter.
gst.buffer.Buffer resetAndGetBuffer()Resets bitwriter and returns the current data as #GstBuffer.
bool setPos(uint pos)
Constructors
this(void * ptr, Flag!"Take" take)