buffer 1.0.6

  • Readme
  • Changelog
  • Installing
  • 79

Buffer - Dart library for byte buffers and streams. #

Utility functions and classes to work with byte buffers and streams efficiently, to read and write binary data formats.

1.0.6 #

  • Using package:pedantic as base of the lint rules.

1.0.5+1 #

  • Fix offsetInBytes use.

1.0.5 #

  • More efficient merge in ByteDataReader.

1.0.4 #

  • Fix buffer processing bug.

1.0.3 #

  • ByteDataReader.readAhead

1.0.2 #

  • byteLength-driven read and write methods for integers.

1.0.1 #

  • Fix return type of ByteDataReader.read().

1.0.0 #

  • Initial version.

Use this package as a library

1. Depend on it

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

  buffer: ^1.0.6

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:buffer/buffer.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health suggestions

Fix lib/buffer.dart. (-13.09 points)

Analysis of lib/buffer.dart reported 28 hints, including:

line 26 col 14: Unnecessary new keyword.

line 30 col 13: Unnecessary new keyword.

line 57 col 13: Unnecessary new keyword.

line 69 col 25: Unnecessary new keyword.

line 72 col 20: Unnecessary new keyword.

Fix lib/io_buffer.dart. (-2.48 points)

Analysis of lib/io_buffer.dart reported 5 hints:

line 17 col 12: Unnecessary new keyword.

line 17 col 34: Unnecessary new keyword.

line 21 col 12: Unnecessary new keyword.

line 21 col 34: Unnecessary new keyword.

line 23 col 11: Unnecessary new keyword.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and buffer.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0