Write trailing bit to align last byte of data. trailing_bit can only be 1 or 0.
Frees bitwriter without destroying the internal data, which is returned as #GstBuffer.
Get size of written data
Write nbits bits of value to #GstBitWriter.
Write nbits bits of value to #GstBitWriter.
Write nbits bits of value to #GstBitWriter.
Write nbits bits of value to #GstBitWriter.
Write nbytes bytes of data to #GstBitWriter.
Resets bitwriter and frees the data if it's owned by bitwriter.
Resets bitwriter and returns the current data as #GstBuffer.
#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.