Skip to content

A package for writing, reading, and debugging binary data efficiently in Dart.

License

dab246/super_raw

Repository files navigation

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.

About

A package for writing, reading, and debugging binary data efficiently in Dart.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages