raw 0.1.0 copy "raw: ^0.1.0" to clipboard
raw: ^0.1.0 copied to clipboard

discontinued
outdated

A package for writing, reading, and debugging binary data.

example/raw.dart

import 'package:raw/raw.dart';

class ExampleStruct extends SelfCodec {
  int intField = 0;
  String stringField = "";

  @override
  void decodeSelf(RawReader reader) {
    intField = reader.readVarInt();
    stringField = reader.readUtf8NullEnding();
  }

  @override
  void encodeSelf(RawWriter writer) {
    writer.writeVarInt(intField);
    writer.writeUtf8(stringField);
  }
}
2
likes
30
pub points
19%
popularity

Publisher

unverified uploader

A package for writing, reading, and debugging binary data.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, fixnum, matcher, meta

More

Packages that depend on raw