snappyFrameCompressInto method

int snappyFrameCompressInto(
  1. int length,
  2. UnsafeBytes destination,
  3. int destinationLength, {
  4. int level = 1,
})

Frames length bytes of this memory into destination.

destinationLength must be at least SnappyFraming.maxCompressedLength.

Implementation

int snappyFrameCompressInto(
  int length,
  UnsafeBytes destination,
  int destinationLength, {
  int level = 1,
}) => SnappyFraming.compressInto(
  view(length),
  destination.view(destinationLength),
  level: level,
);