A lightweight, high-performance binary data library for Dart.
Easily write, read, and debug binary data with flexible byte-level control.
- ✳️ RawWriter for writing binary data efficiently
- ✳️ RawReader for reading binary data back
- ✳️ Support for:
- Integers (signed/unsigned, variable-length)
- Floating-point numbers
- UTF-8 strings (null-terminated and standard)
- Custom codec interfaces (
SelfEncoder,SelfDecoder)
- 🧪 Fully unit tested and compatible with Dart 3.8.1
Add this to your pubspec.yaml:
dependencies:
super_raw: ^0.1.0Then run:
dart pub getimport 'package:super_raw/raw.dart';
void main() {
final writer = RawWriter.withCapacity(8);
writer.writeUint8(1);
writer.writeUint8(2);
print(writer.toUint8ListView()); // [1, 2]
}dart test- Add
RawReaderstreaming API - Provide example-based docs on pub.dev
- Add benchmarking utilities
Released under the MIT License.