masked_scan_uint32


Description:

[ CCode ( cname = "gst_byte_reader_masked_scan_uint32" ) ]
public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size)

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.

Parameters:

this

a ByteReader

mask

mask to apply to data before matching against pattern

pattern

pattern to match (after mask is applied)

offset

offset from which to start scanning, relative to the current position

size

number of bytes to scan from offset

Returns: