- 📦 update packages
- ✨ add
Inject
type - ✅✔️ add
Inject
test - realloc
- 📦 update packages
- 📚 update readme
- 🐛 export
bitFields
function
- ✨add bit-fields type
- ✅✔️ add bit-fields test
- Fix errors caused by deeps
- You can force a structure to use big-endian or little-endian
- Add more tests
- Add esm module package
- No api changes
- build: Upgrade dependencies, fix packaging errors, and the problem of not being able to find the TEXT function
- feat: Added
TEXT()
utility function - test: Added "utils" test code
- fix:
calcsize()
Processing format byte order - feat: Add
makeDataView()
tool function - feat:
unpack()
function adds an optional parameter of offset - feat:
pack_into()
,unpack_from()
,iter_unpack()
,new Struct()
- test: Added
Struct
test - fix: Matching error when format is "2?"
- build: Upgrade all dependencies
- fix:
sbytes()
Ignore case
- fix:
pack()
has a bug when processingstring_t
- feat:
sbytes2()
,b2('abc 0x640ah') => <61 62 63 20 64 0a>
- perf:
sbytes()
Parse multiple types of byte strings - test: Optimize test code
- docs: Update the code sample on "readme.md"
- fix: bits(...)[n],
EFLAG[2].decode(...) => [{...},{...}]
- fix: BOOl, Before:
BOOl.decode(...) => 1
, Now:BOOl.decode(...) => true
- feat: bool type
- feat: padding_t type
- feat:
sbytes(...)
andsview(...)
- feat: py-struct,
calcsize(...)
,unpack(...)
,pack(...)
- feat:
bits(...)
see readme.
- When decode input array, convert to Uint8Array
- fix FLOAT and DOUBLE
- build "v4.0.0" 😂
- fix: #1
- Support struct multi array
- Some api changes (e.g. parseCStruct => CStruct.parse, toCStruct => CStruct.from)
- Add When reading a string, it will end reading directly when it encounters 0x0, and the following bytes will be filled with 0
- Support reading "c-struct" string template and converting it into StructBuffer
- Support converting StructBuffer into "c-struct" string
- Support StructBuffer list
- Added typedef function for more convenient type definition
- Added more default types
- Fixed sizeof function
- Support custom type (e.g. short = registerType("short", 2, false))
- struct nesting
- Add sizeof and display function
- Add type array (e.g. BYTE[3], float[4x4])
- Support array nesting (e.g. double[4][2])
- No longer supports string attributes (e.g. 'char' 'DWORD')
- Add structure to ArrayBuffer