byte_array 0.1.6
byte_array: ^0.1.6
byte_array: ^1.0.0-nullsafety.0

Dart native js
Flutter Android iOS web

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

byte_array #

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

Usage #

A simple usage example:

import 'package:byte_array/byte_array.dart';

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);
}
1
likes
100
pub points
68%
popularity

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

Uploader

mark.nordine@gmail.com

License

BSD (LICENSE.md)

Dependencies

typed_data

More

Packages that depend on byte_array