let parser = new Parser() .endianess("little") .bit4("a") .bit1("b") .bit1("c") .bit1("d") .bit1("e") .uint16("f") .array("g", { type: "uint8", readUntil: "eof" });
Encoding and then parsing an object using this parser in little endian mode does not result in the same object, but it does in big endian mode.
let parser = new Parser() .endianess("little") .bit4("a") .bit1("b") .bit1("c") .bit1("d") .bit1("e") .uint16("f") .array("g", { type: "uint8", readUntil: "eof" });Encoding and then parsing an object using this parser in little endian mode does not result in the same object, but it does in big endian mode.