Since 1.16Optionalproperties: Partial<{ bit_size: number; data: number }>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
true if successful, false otherwise.
Frees bitwriter and the allocated data inside.
Frees bitwriter without destroying the internal data, which is
returned as Gst.Buffer.
Free-function: gst_buffer_unref
a new allocated Gst.Buffer wrapping the data inside. gst_buffer_unref() after usage.
Frees bitwriter without destroying the internal data, which is
returned.
Free-function: g_free
the current data. g_free() after usage.
Get written data pointer
data pointer
Get size of written data
size of bits written in data
Write nbits bits of value to GstBase.BitWriter.
value of guint16 to write
number of bits to write
true if successful, false otherwise.
Write nbits bits of value to GstBase.BitWriter.
value of guint32 to write
number of bits to write
true if successful, false otherwise.
Write nbits bits of value to GstBase.BitWriter.
value of guint64 to write
number of bits to write
true if successful, false otherwise.
Write nbits bits of value to GstBase.BitWriter.
value of guint8 to write
number of bits to write
true if successful, false otherwise.
Write nbytes bytes of data to GstBase.BitWriter.
pointer of data to write
number of bytes to write
true if successful, false otherwise.
Resets bitwriter and frees the data if it's owned by bitwriter.
Resets bitwriter and returns the current data as Gst.Buffer.
Free-function: gst_buffer_unref
a new allocated Gst.Buffer wrapping the current data. gst_buffer_unref() after usage.
Resets bitwriter and returns the current data.
Free-function: g_free
the current data. g_free() after usage.
GstBase.BitWriter 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.
Since
1.16