Set the endianness of an entire type definition
Use the @LittleEndian decorator on top of a class
declaration to change the endianness of all its properties.
In the following example, the Protocol type definition that
include two unsigned 32bits integer: foo and bar, will use little-endian
byte order.
@LittleEndian
class Protocol {
@Uint32
foo: number
@Uint32
bar: number
}
@LittleEndiandecorator set the endianness of a decorated class or property to little endian.