public static ByteBuffer wrapPointer(long ptr, int len) {
        ByteBuffer buf = PlatformDependent.directBuffer(ptr, len);

        assert buf.isDirect();
        return buf;
    }
@param ptr Pointer to wrap.
@param len Memory location length.
@return Byte buffer wrapping the given memory.
s3stream/src/main/java/com/automq/stream/thirdparty/moe/cnkirito/kdio/DirectIOUtils.java