Import line: | GstBase = imports.gi.GstBase; |
GIR File: | GstBase-0.10.gir |
C documentation: | GstByteReader |
Struct : | ByteReader |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
byte : Number
|
GstBase.ByteReader | |
data : void*
|
GstBase.ByteReader | |
size : Number
|
GstBase.ByteReader |
Method / Constructor | Defined By | |
---|---|---|
new GstBase.ByteReader
()
Create a new GstBase.ByteReader
Create a new GstBase.ByteReader
|
||
Create a new GstBase.ByteReader
Create a new GstBase.ByteReader
|
||
Create a new GstBase.ByteReader
Create a new GstBase.ByteReader
|
||
Returns a newly-allocated copy of the current data position if at least size bytes are left and updates the current position.
|
GstBase.ByteReader | |
Returns a newly-allocated copy of the current data position if there is a NUL-terminated UTF-16 string in the data (this could be an empty string as well), and advances the current position.
Returns a newly-allocated copy of the current data position if there is a NUL-terminated UTF-16 string in the data (this could be an empty string as well), and advances the current position. No input checking for valid UTF-16 is done. This function is endianness agnostic - you should not assume the UTF-16 characters are in host endianness. This function will fail if no NUL-terminator was found in in the data. byte alignment of the UTF-16 string.
|
GstBase.ByteReader | |
Returns a newly-allocated copy of the current data position if there is a NUL-terminated UTF-32 string in the data (this could be an empty string as well), and advances the current position.
Returns a newly-allocated copy of the current data position if there is a NUL-terminated UTF-32 string in the data (this could be an empty string as well), and advances the current position. No input checking for valid UTF-32 is done. This function is endianness agnostic - you should not assume the UTF-32 characters are in host endianness. This function will fail if no NUL-terminator was found in in the data. byte alignment of the UTF-32 string.
|
GstBase.ByteReader | |
FIXME:Reads (copies) a NUL-terminated string in the GstByteReader instance, advancing the current position to the byte after the string.
FIXME:Reads (copies) a NUL-terminated string in the GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader | |
free
()
:
none
Frees a GstByteReader instance, which was previously allocated by gst_byte_reader_new() or gst_byte_reader_new_from_buffer().
Frees a GstByteReader instance, which was previously allocated by gst_byte_reader_new() or gst_byte_reader_new_from_buffer().
|
GstBase.ByteReader | |
Returns a constant pointer to the current data position if at least size bytes are left and updates the current position.
|
GstBase.ByteReader | |
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
get_pos
()
:
Number
Returns the current position of a GstByteReader instance in bytes.
Returns the current position of a GstByteReader instance in bytes.
|
GstBase.ByteReader | |
get_remaining
()
:
Number
Returns the remaining number of bytes of a GstByteReader instance.
Returns the remaining number of bytes of a GstByteReader instance.
|
GstBase.ByteReader | |
get_size
()
:
Number
Returns the total number of bytes of a GstByteReader instance.
Returns the total number of bytes of a GstByteReader instance.
|
GstBase.ByteReader | |
Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator), advancing the current position to the byte after the string.
Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator), advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader | |
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
init_from_buffer
(Buffer buffer)
:
none
Initializes a GstByteReader instance to read from buffer.
Initializes a GstByteReader instance to read from buffer. This function can be called on already initialized instances.
|
GstBase.ByteReader | |
Scan for pattern pattern with applied mask mask in the byte reader data, starting from offset offset relative to the current position.
Scan for pattern pattern with applied mask mask in the byte reader data, starting from offset offset relative to the current position. The bytes in pattern and mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the byte reader data for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the byte reader. Example:
|
GstBase.ByteReader | |
Returns a constant pointer to the current data position if at least size bytes are left and keeps the current position.
|
GstBase.ByteReader | |
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator).
Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator). The current position will be maintained. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader | |
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
GstBase.ByteReader | ||
skip_string_utf16
()
:
Boolean
Skips a NUL-terminated UTF-16 string in the GstByteReader instance, advancing the current position to the byte after the string.
Skips a NUL-terminated UTF-16 string in the GstByteReader instance, advancing the current position to the byte after the string. No input checking for valid UTF-16 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader | |
skip_string_utf32
()
:
Boolean
Skips a NUL-terminated UTF-32 string in the GstByteReader instance, advancing the current position to the byte after the string.
Skips a NUL-terminated UTF-32 string in the GstByteReader instance, advancing the current position to the byte after the string. No input checking for valid UTF-32 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader | |
skip_string_utf8
()
:
Boolean
Skips a NUL-terminated string in the GstByteReader instance, advancing the current position to the byte after the string.
Skips a NUL-terminated string in the GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data.
|
GstBase.ByteReader |
None |