blit library

Zero-copy blit integration for Snappy and SnappyFraming.

Import this library instead of package:snappy_neo/snappy_neo.dart when you already work with Bytes/BytesMut and want to avoid buffer copies:

import 'package:blit/blit_buffer.dart';
import 'package:snappy_neo/blit.dart';

final compressed = Bytes.fromUint8List(payload).snappyCompress();
final restored = compressed.snappyDecompress();

final framed = Bytes.fromUint8List(payload).snappyFrameCompress();
final unpacked = framed.snappyFrameDecompress();

Extensions

SnappyBytesExtension on Bytes
Snappy operations on blit's zero-copy Bytes views.
SnappyBytesMutExtension on BytesMut
Appends Snappy streams to a blit BytesMut without intermediate copies.