d_bincode 2.0.0
d_bincode: ^2.0.0 copied to clipboard
A bincode like serialization library for Dart. Manually writen, provides encoding for binary data structures, mirroring the bincode specification (Rust) minimalistically.
1.0.0 #
- Initial version.
1.0.1 #
- Added nested objects/classes support - writeNested, writeOptionalNested, readNestedObject, readOptionalNestedObject.
toBincode()/fromBincode()API inherit from BincodeEncodable / BincodeDecodable.- Added error handling and validation.
- Removed
DebuggableandFluentAPIs. - Added benchmarks (speed & size) vs JSON example.
- Improved documentation and fixed lints for pub.dev compliance.
2.0.0 #
Breaking Changes #
- Removed
lengthparameter fromread*Listmethods (now reads length prefix). Update calls by removing the argument. - Renamed
loadFromBytestofromBincode.
Added #
- Optional
unsafe/uncheckedflags forBincodeReader/BincodeWriterto bypass checks for performance. - New
readNestedObjectForFixedandreadOptionNestedObjectForFixedmethods for fixed-size object reading. readRawBytes(int length)method.
Deprecated #
readNestedObject/readOptionNestedObject. UseForCollectionorForFixedvariants instead.
Removed #
- Internal implementation classes (
Builder,Wrapper,Exception) from public API.