SnappyBytesMutExtension extension
Appends Snappy streams to a blit BytesMut without intermediate copies.
Both methods reserve the worst-case output size and compress straight into the buffer's spare capacity, so building a larger message out of several compressed parts never allocates a temporary result.
- on
-
- BytesMut
Methods
-
snappyCompressFrom(
Bytes source, {int level = 1}) → void -
Available on BytesMut, provided by the SnappyBytesMutExtension extension
Appends the block-format compression ofsource. -
snappyFrameCompressFrom(
Bytes source, {int level = 1}) → void -
Available on BytesMut, provided by the SnappyBytesMutExtension extension
Appends the framing-format compression ofsource.