Size of written data
in bits
Allocated data
for bit writer to write
Write trailing bit to align last byte of data
. trailing_bit
can
only be 1 or 0.
trailing bits of last byte, 0 or 1
Frees bitwriter
and the allocated data inside.
Frees bitwriter
without destroying the internal data, which is
returned.
Free-function: g_free
Get written data pointer
Get size of written data
Write nbits
bits of value
to #GstBitWriter.
value of #guint16 to write
number of bits to write
Write nbits
bits of value
to #GstBitWriter.
value of #guint32 to write
number of bits to write
Write nbits
bits of value
to #GstBitWriter.
value of #guint64 to write
number of bits to write
Write nbits
bits of value
to #GstBitWriter.
value of #guint8 to write
number of bits to write
Write nbytes
bytes of data
to #GstBitWriter.
pointer of data to write
number of bytes to write
Resets bitwriter
and frees the data if it's owned by bitwriter
.
Resets bitwriter
and returns the current data.
Free-function: g_free
#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.