ByteReader.getSubReader

Initializes a gst.ByteReader.ByteReader sub-reader instance to contain size bytes of data from the current position of reader. This is useful to read chunked formats and make sure that one doesn't read beyond the size of the sub-chunk.

Unlike ByteReader.peekSubReader, this function also modifies the position of reader and moves it forward by size bytes.

class ByteReader
bool
getSubReader

Parameters

subReader ByteReader

a gst.ByteReader.ByteReader instance to initialize as sub-reader

size uint

size of sub_reader in bytes

Return Value

Type: bool

FALSE on error or if reader does not contain size more bytes from the current position, and otherwise TRUE

Meta