gstbase.byte_writer
Module for [ByteWriter] class
class ByteWriter
Types 1
classByteWriter
#GstByteWriter 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.
Fields
GstByteWriter _cInstanceMethods
void * _cPtr() nothrowgstbase.byte_reader.ByteReader parent() @property nothrowGet `parent` field. Returns: #GstByteReader parentvoid allocSize(uint propval) @property nothrowSet `allocSize` field. Params: propval = Allocation size of the datavoid fixed(bool propval) @property nothrowSet `fixed` field. Params: propval = If true no reallocations are allowedbool owned() @property nothrowGet `owned` field. Returns: If false no reallocations are allowed and copies of data are returnedvoid owned(bool propval) @property nothrowSet `owned` field. Params: propval = If false no reallocations are allowed and copies of data are returnedbool ensureFreeSpace(uint size) nothrowChecks if enough free space from the current write cursor is available and reallocates if necessary.gst.buffer.Buffer freeAndGetBuffer() nothrowFrees writer and all memory allocated by it except the current data, which is returned as #GstBuffer.ubyte * freeAndGetData() nothrowFrees writer and all memory allocated by it except the current data, which is returned.uint getRemaining() nothrowReturns the remaining size of data that can still be written. If -1 is returned the remaining size is only limited by system resources. Returns: the remaining size of data that can still be writtenvoid initWithData(ubyte[] data, bool initialized) nothrowInitializes writer with the given memory area. If initialized is true it is possible to read size bytes from the #GstByteWriter from the beginning.void initWithSize(uint size, bool fixed) nothrowInitializes writer with the given initial data size.bool putBuffer(gst.buffer.Buffer buffer, size_t offset, ptrdiff_t size) nothrowWrites size bytes of data to writer.bool putStringUtf16(ushort[] data) nothrowWrites a NUL-terminated UTF16 string to writer (including the terminator).bool putStringUtf32(uint[] data) nothrowWrites a NUL-terminated UTF32 string to writer (including the terminator).bool putStringUtf8(string data) nothrowWrites a NUL-terminated UTF8 string to writer (including the terminator).