binary 4.0.0-alpha+3 binary: ^4.0.0-alpha+3 copied to clipboard
Utilities for accessing binary data and bit manipulation in Dart and Flutter
Examples #
This directory contains examples of how to use package:binary
.
Basic #
A simple example of how to use package:binary
to parse and shift bits.
$ dart example/basic.dart
127
00000011
Checksum #
Calculates the CRC32 checksum of a file.
$ dart example/checksum.dart example/checksum.dart
CRC32 checksum: 13b53c2f
Bitfield #
Demonstrates decoding binary data efficiently, i.e. opcodes or binary formats.
$ dart example/bitfield.dart
11011101
Kind: 00001101
S: 00000001
Level: 00000010
P: 00000001