shuwenwei commented on code in PR #9231:
URL: https://github.com/apache/iotdb/pull/9231#discussion_r1129106015
##########
tsfile/src/main/java/org/apache/iotdb/tsfile/compress/IUnCompressor.java:
##########
@@ -312,4 +315,45 @@ public CompressionType getCodecName() {
return CompressionType.GZIP;
}
}
+
+ class ZstdUnCompressor implements IUnCompressor {
+
+ @Override
+ public int getUncompressedLength(byte[] array, int offset, int length)
throws IOException {
+ return (int) Zstd.decompressedSize(array, offset, length);
Review Comment:
It looks like the size is saved in the header.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]