diff options
author | jonmv <venstad@gmail.com> | 2022-06-14 13:51:57 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-06-14 13:51:57 +0200 |
commit | 4dfe98dad3aab5c3d77605b67bc758be770bd93e (patch) | |
tree | ae1cab80cd95b785bc6222a5e83bfe103d20bc80 /vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java | |
parent | e0e3ff465fcec5bb6a7253da2cd6df82f9701066 (diff) |
Add some comments, cleanup
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java b/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java index 004c1d2a017..29a58dbde47 100644 --- a/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java +++ b/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java @@ -28,7 +28,7 @@ public class ZstdCompressor { /** * Note: * Implementation assumes single frame (since {@link #getDecompressedLength(byte[], int, int)} only includes the first frame) - * The {@link #decompress(byte[], int, int, byte[], int, int)} overload will try to decompress all frame, causing the output buffer to overflow. + * The {@link #decompress(byte[], int, int, byte[], int, int)} overload will try to decompress all frames, causing the output buffer to overflow. */ public byte[] decompress(byte[] input, int inputOffset, int inputLength) { int decompressedLength = getDecompressedLength(input, inputOffset, inputLength); @@ -48,4 +48,5 @@ public class ZstdCompressor { public static int getDecompressedLength(byte[] input, int inputOffset, int inputLength) { return (int) io.airlift.compress.zstd.ZstdDecompressor.getDecompressedSize(input, inputOffset, inputLength); } + } |