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() nothrow
uint bitSize() @property nothrowGet `bitSize` field. Returns: Size of written @data in bits
void bitSize(uint propval) @property nothrowSet `bitSize` field. Params: propval = Size of written @data in bits
bool alignBytes(ubyte trailingBit) nothrowWrite trailing bit to align last byte of data. trailing_bit can only be 1 or 0.
gst.buffer.Buffer freeAndGetBuffer() nothrowFrees bitwriter without destroying the internal data, which is returned as #GstBuffer.
uint getRemaining() nothrow
uint getSize() nothrowGet size of written data Returns: size of bits written in data
bool putBitsUint16(ushort value, uint nbits) nothrowWrite nbits bits of value to #GstBitWriter.
bool putBitsUint32(uint value, uint nbits) nothrowWrite nbits bits of value to #GstBitWriter.
bool putBitsUint64(ulong value, uint nbits) nothrowWrite nbits bits of value to #GstBitWriter.
bool putBitsUint8(ubyte value, uint nbits) nothrowWrite nbits bits of value to #GstBitWriter.
bool putBytes(ubyte[] data) nothrowWrite nbytes bytes of data to #GstBitWriter.
void reset() nothrowResets bitwriter and frees the data if it's owned by bitwriter.
gst.buffer.Buffer resetAndGetBuffer() nothrowResets bitwriter and returns the current data as #GstBuffer.
bool setPos(uint pos) nothrow
Constructors
this(void * ptr, Flag!"Take" take)