slob_reader 0.1.3 copy "slob_reader: ^0.1.3" to clipboard
slob_reader: ^0.1.3 copied to clipboard

A pure Dart implementation of the Slob (Sorted List of Blobs) file format reader.

example/example.dart

import 'package:slob_reader/slob_reader.dart';

void main() async {
  // Opening a slob file
  final reader = await SlobReader.open('abc.slob');

  // Multi-range bulk read
  final ranges = [
    (0, 5),    // First 5 entries
    (100, 10), // Entries from index 100 to 109
  ];

  final blobs = await reader.getBlobs(ranges);

  print('Read ${blobs.length} blobs in bulk style.');
  for (final blob in blobs.take(3)) {
    print('Key: ${blob.key}, Content-Type: ${blob.contentType}');
  }

  await reader.close();
}
0
likes
0
points
363
downloads

Publisher

unverified uploader

Weekly Downloads

A pure Dart implementation of the Slob (Sorted List of Blobs) file format reader.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive

More

Packages that depend on slob_reader