Module scalars

Source
Expand description

This file contains all the scalars defined in the specification file.

The specification uses names like WORD, SHORT, etc. which was resulted in some confusion while implementing this parser. Therefore the parser uses the same types making it easy to compare it to the specification.

Structs§

Color
Fixed
Point
RGB
Rect
Size

Functions§

byte
dword
dword_size
Parse a DWORD as size information and make sure the parsed size no less than 4. The latter is important as this function is used when parsing frames and chunks where the size includes itself.
fixed
long
parse_color
parse_dword_as_u8
parse_dword_as_usize
parse_point
parse_rect
parse_rgb
parse_size
parse_string
parse_uuid
short
word

Type Aliases§

Byte
Double
Dword
Float
Long
Long64
Qword
Short
Uuid
Word