public static StoreFileChunk from(ByteBuffer buf) {
    Objects.requireNonNull(buf, "ByteBuffer cannot be null");
    return new StoreFileChunk(
        new DataInputStream(new ByteBufferInputStream(buf)), buf.remaining());
  }
Create a StoreFileChunk from a ByteBuffer
@param buf the ByteBuffer to create the StoreFileChunk from
@return StoreFileChunk representing the chunk stream of the file requested
ambry-api/src/main/java/com/github/ambry/store/StoreFileChunk.java