ByteReader.peekSubReader

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.getSubReader, this function does not modify the current position of reader.

class ByteReader
bool
peekSubReader

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