super_raw

Pub License: MIT Dart 3.0+

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 RawReader streaming API
  • Provide example-based docs on pub.dev
  • Add benchmarking utilities

πŸ“„ License

Released under the MIT License.

Libraries

raw
test_helpers