Optionalproperties: Partial<Checks if enough free space from the current write cursor is available and reallocates if necessary.
Number of bytes that should be available
true if at least size bytes are still available
Writes size bytes containing value to writer.
Value to be written
Number of bytes to be written
true if the value could be written
Frees writer and all memory allocated by it.
Frees writer and all memory allocated by it except
the current data, which is returned as Gst.Buffer.
Free-function: gst_buffer_unref
the current data as buffer. gst_buffer_unref() after usage.
Frees writer and all memory allocated by it except
the current data, which is returned.
Free-function: g_free
the current data. g_free() after usage.
Returns the remaining size of data that can still be written. If -1 is returned the remaining size is only limited by system resources.
the remaining size of data that can still be written
Initializes writer to an empty instance
Initializes writer with the given
memory area. If initialized is true it is possible to
read size bytes from the GstBase.ByteWriter from the beginning.
Memory area for writing
If true the complete data can be read from the beginning
Initializes writer with the given initial data size.
Initial size of data
If true the data can't be reallocated
Writes size bytes of data to writer.
source Gst.Buffer
offset to copy from
total size to copy. If -1, all data is copied
true if the data could be written
Writes size bytes of data to writer.
Data to write
true if the value could be written
Writes a big endian 32 bit float to writer.
Value to write
true if the value could be written
Writes a little endian 32 bit float to writer.
Value to write
true if the value could be written
Writes a big endian 64 bit float to writer.
Value to write
true if the value could be written
Writes a little endian 64 bit float to writer.
Value to write
true if the value could be written
Writes a signed big endian 16 bit integer to writer.
Value to write
true if the value could be written
Writes a signed little endian 16 bit integer to writer.
Value to write
true if the value could be written
Writes a signed big endian 24 bit integer to writer.
Value to write
true if the value could be written
Writes a signed little endian 24 bit integer to writer.
Value to write
true if the value could be written
Writes a signed big endian 32 bit integer to writer.
Value to write
true if the value could be written
Writes a signed little endian 32 bit integer to writer.
Value to write
true if the value could be written
Writes a signed big endian 64 bit integer to writer.
Value to write
true if the value could be written
Writes a signed little endian 64 bit integer to writer.
Value to write
true if the value could be written
Writes a signed 8 bit integer to writer.
Value to write
true if the value could be written
Writes a NUL-terminated UTF16 string to writer (including the terminator).
UTF16 string to write
true if the value could be written
Writes a NUL-terminated UTF32 string to writer (including the terminator).
UTF32 string to write
true if the value could be written
Writes a NUL-terminated UTF8 string to writer (including the terminator).
UTF8 string to write
true if the value could be written
Writes a unsigned big endian 16 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned little endian 16 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned big endian 24 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned little endian 24 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned big endian 32 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned little endian 32 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned big endian 64 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned little endian 64 bit integer to writer.
Value to write
true if the value could be written
Writes a unsigned 8 bit integer to writer.
Value to write
true if the value could be written
Resets writer and frees the data if it's
owned by writer.
Resets writer and returns the current data.
Free-function: g_free
the current data. g_free() after usage.
GstBase.ByteWriter provides a byte writer and reader that can write/read different integer and floating point types to/from a memory buffer. It provides functions for writing/reading signed/unsigned, little/big endian integers of 8, 16, 24, 32 and 64 bits and functions for reading little/big endian floating points numbers of 32 and 64 bits. It also provides functions to write/read NUL-terminated strings in various character encodings.