class PlatformUnpooledMemory extends PlatformAbstractMemory {
    /**
     * Constructor.
     *
     * @param memPtr Cross-platform memory pointer.
     */
    public PlatformUnpooledMemory(long memPtr) {
        super(memPtr);
    }

    /** {@inheritDoc} */
    @Override public void reallocate(int cap) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public void close() {
        releaseUnpooled(memPtr);
    }
}

        // Try doubling capacity to avoid excessive allocations.
        int doubledCap = PlatformMemoryUtils.capacity(memPtr) << 1;

        if (doubledCap > cap)
            cap = doubledCap;

        reallocateUnpooled(memPtr, cap);
    
<methods>public int capacity() ,public long data() ,public org.apache.ignite.internal.processors.platform.memory.PlatformInputStream input() ,public int length() ,public org.apache.ignite.internal.processors.platform.memory.PlatformOutputStream output() ,public long pointer() <variables>private static final org.apache.ignite.internal.processors.platform.memory.PlatformAbstractMemory.StreamFactory STREAM_FACTORY,protected long memPtr