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.
package:pedanticas base of the lint rules.
- More efficient merge in
- Fix buffer processing bug.
byteLength-driven read and write methods for integers.
- Fix return type of
- Initial version.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: buffer: ^1.0.6
2. Install it
You can install packages from the command line:
$ pub get
$ 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:
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]
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
lib/buffer.dart. (-13.09 points)
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.
lib/io_buffer.dart. (-2.48 points)
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.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
buffer.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.