byte_array 0.0.1 copy "byte_array: ^0.0.1" to clipboard
byte_array: ^0.0.1 copied to clipboard

outdatedDart 1 only

Byte array manipulation

byte_array #

Supports reading and writing to a byte array

Usage #

A simple usage example:

import 'package:byte_array/byte_array.dart';

main() {
  final bytes = new ByteArray(6);
  bytes.writeFloat(33.6);
  bytes.writeUnsignedShort(5);

  print('length in bytes: ${bytes.length}');

  bytes.offset = 0;
  final float = bytes.readFloat();
  print(float);

  final short = bytes.readUnsignedShort();
  print(short);
}
2
likes
0
pub points
54%
popularity

Publisher

unverified uploader

Byte array manipulation

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on byte_array