byte_array 1.0.0-nullsafety.0 copy "byte_array: ^1.0.0-nullsafety.0" to clipboard
byte_array: ^1.0.0-nullsafety.0 copied to clipboard

Byte array manipulation modelled after AS3 ByteArray class. https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html

example/byte_array_example.dart

import 'package:byte_array/byte_array.dart';

void main() {
  final bytes = 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
130
pub points
53%
popularity

Publisher

unverified uploader

Byte array manipulation modelled after AS3 ByteArray class. https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

typed_data

More

Packages that depend on byte_array