LeiRui commented on a change in pull request #34: fix sonar 
URL: https://github.com/apache/incubator-iotdb/pull/34#discussion_r252189111
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/utils/ReadWriteIOUtils.java
 ##########
 @@ -536,6 +536,41 @@ public static ByteBuffer 
readByteBufferWithSelfDescriptionLength(ByteBuffer buff
     return byteBuffer;
   }
 
+  /**
+   * Used by 'deserializeFrom' function of both class 'ChunkHeader' and class 
'ChunkGroupFooter'.
+   *
+   * @param channel FileChannel
+   * @param offset offset position
+   * @param markerRead read marker
+   * @param isHeader true if it is used by ChunkHeader, false if it is used by 
ChunkGroupFooter
+   * @param len an array passed as a parameter to this method to transmit the 
length information
+   * @return ByteBuffer got from FileChannel
+   */
+  public static ByteBuffer getByteBufferFromFileChannel(FileChannel channel, 
long offset,
 
 Review comment:
   These kinds of modifications will be revoked.

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


With regards,
Apache Git Services

Reply via email to