code: private static int get(byte[] block, int offset, ByteBuffer buf, int len) {
      buf.put(block, offset, len);
      return len;
    }
docs: Reads len bytes starting at the given offset in the given block into the given byte buffer.