super_raw 0.1.0
super_raw: ^0.1.0 copied to clipboard
A package for writing, reading, and debugging binary data efficiently in Dart.
super_raw #
A lightweight, high-performance binary data library for Dart.
Easily write, read, and debug binary data with flexible byte-level control.
π Features #
- β³οΈ 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
π¦ Installation #
Add this to your pubspec.yaml:
dependencies:
super_raw: ^0.1.0
Then run:
dart pub get
π‘ Example #
import 'package:super_raw/raw.dart';
void main() {
final writer = RawWriter.withCapacity(8);
writer.writeUint8(1);
writer.writeUint8(2);
print(writer.toUint8ListView()); // [1, 2]
}
π§ͺ Run tests #
dart test
πΊοΈ Roadmap #
- Add
RawReaderstreaming API - Provide example-based docs on pub.dev
- Add benchmarking utilities
π License #
Released under the MIT License.