binary 4.0.0 copy "binary: ^4.0.0" to clipboard
binary: ^4.0.0 copied to clipboard

Utilities for accessing binary data and bit manipulation in Dart.

example/README.md

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
24
likes
160
points
10.9k
downloads

Publisher

verified publisherlurey.dev

Weekly Downloads

Utilities for accessing binary data and bit manipulation in Dart.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on binary