byte_array 0.0.2

  • Installing
  • Versions
  • 52


Supports reading and writing to a byte array


A simple usage example:

import 'package:byte_array/byte_array.dart';

main() {
  final bytes = new ByteArray(6);

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

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

  final short = bytes.readUnsignedShort();



  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  byte_array: "^0.0.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:byte_array/byte_array.dart';
Version Uploaded Documentation Archive
0.0.2 Jan 25, 2017 Go to the documentation of byte_array 0.0.2 Download byte_array 0.0.2 archive
0.0.1 Jan 24, 2017 Go to the documentation of byte_array 0.0.1 Download byte_array 0.0.1 archive


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
24 / 100
Code health derived from static analysis. [more]
97 / 100
Reflects how tidy and up-to-date the package is. [more]
56 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:byte_array/byte_array.dart.


  • Homepage does not exists.

    We were unable to access at the time of the analysis.

  • Package is getting outdated.

    The package was released 71 weeks ago.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 7 hints.

    Run dartfmt to format lib/src/byte_array_base.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
typed_data >=1.1.3 <2.0.0 1.1.5
Dev dependencies
test >=0.12.0 <0.13.0