kr11 commented on a change in pull request #2024:
URL: https://github.com/apache/iotdb/pull/2024#discussion_r524844723
##########
File path:
tsfile/src/main/java/org/apache/iotdb/tsfile/utils/ReadWriteIOUtils.java
##########
@@ -708,6 +708,26 @@ public static ByteBuffer
readByteBufferWithSelfDescriptionLength(ByteBuffer buff
return byteBuffer;
}
+ /**
+ * read bytes from an inputStream where the length is specified at the head
of the inputStream.
+ * @param inputStream contains a int-type length and a stream
+ * @return bytebuffer
+ * @throws IOException if the read length doesn't equal to the self
description length.
+ */
+ public static ByteBuffer readByteBufferWithSelfDescriptionLength(InputStream
inputStream)
+ throws IOException {
+ int length = readInt(inputStream);
Review comment:
Added in the comment :)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]