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

outdated

Utilities for working with binary data

example/main.dart

// ignore_for_file: avoid_print
import 'package:binary/binary.dart';

void main() {
  // Using extension methods.
  //                  String         int
  //                 vvvvvvvvvv   vvvvvvvvvv
  print('0111' '1111'.parseBits().shiftRight(5, 8));

  // Using boxed types.
  final int8 = Int8('0111' '1111'.parseBits());
  // Note we did not need to pass in the length, it is provided by the class.
  print(int8.shiftRight(5));
}
19
likes
0
pub points
93%
popularity

Publisher

verified publisherlurey.dev

Utilities for working with binary data

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on binary