raw 0.2.0
raw: ^0.2.0 copied to clipboard

discontinued

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);
  }
}
1
likes
0
pub points
69%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

collection, fixnum, matcher, meta

More

Packages that depend on raw