vfbLib.parsers.header.VfbHeaderParser
- class vfbLib.parsers.header.VfbHeaderParser(stream: BufferedReader)
Bases:
StreamReaderMethods
__init__(stream)parse()Return a double-precision float from the stream.
read_doubles(num)Return a tuple of num double-precision floats from the stream.
Return a float from the stream.
read_floats(num)Return a tuple of num floats from the stream.
Return a signed 16-bit integer from the stream.
Return a signed 32-bit integer from the stream.
Return a signed 8-bit integer from the stream.
read_str(size)Return a string of the specified size from the current stream with the current encoding
Return the remaining bytes of the current stream as a string with the current encoding.
Return an unsigned 16-bit integer from the stream.
Return an unsigned 32-bit integer from the stream.
Return an unsigned 8-bit integer from the stream.
read_value([signed])Return an encoded integer value from the stream.
Attributes
encodingstream- read_double() float
Return a double-precision float from the stream.
- Returns:
The float
- Return type:
- read_str(size: int) str
Return a string of the specified size from the current stream with the current encoding
- read_str_all() str
Return the remaining bytes of the current stream as a string with the current encoding. Null bytes and whitespace are stripped from the string.
- Returns:
The string
- Return type:
- read_uint16() int
Return an unsigned 16-bit integer from the stream.
- Returns:
The integer
- Return type:
- read_uint32() int
Return an unsigned 32-bit integer from the stream.
- Returns:
The integer
- Return type: