random_access_source 2.1.0 copy "random_access_source: ^2.1.0" to clipboard
random_access_source: ^2.1.0 copied to clipboard

A shared interface for common random access data.

example/random_access_source_example.dart

// ignore_for_file: avoid_print

import 'dart:typed_data';

import 'package:random_access_source/random_access_source.dart';

void main() async {
  final source = BytesRASource(Uint8List.fromList([1, 2, 3, 4, 5]));
  print(await source.length());
  print(await source.readByte());
  print(await source.read(2));
  print(await source.position());
  await source.close();
}
0
likes
150
points
349
downloads

Publisher

verified publisherflutter-cavalry.com

Weekly Downloads

A shared interface for common random access data.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on random_access_source