public FSTStruct createCopy() {
        if (!isOffHeap()) {
            throw new RuntimeException("must be offheap to call this");
        }
        byte b[] = new byte[getByteSize()];
        HeapBytez res = new HeapBytez(b);
        getBytes(res, 0);
        return ___fac.createStructWrapper(res, 0);
    }
public FSTStruct createCopy() {
        if (!isOffHeap()) {
            throw new RuntimeException("must be offheap to call this");
        }
        byte b[] = new byte[getByteSize()];
        HeapBytez res = new HeapBytez(b);
        getBytes(res, 0);
        return ___fac.createStructWrapper(res, 0);
    }
public FSTStruct createCopy ( ) { if ( ! isOffHeap ( ) ) { throw new RuntimeException ( "must be offheap to call this" ) ; } byte b [ ] = new byte [ getByteSize ( ) ] ; HeapBytez res = new HeapBytez ( b ) ; getBytes ( res , 0 ) ; return ___fac . createStructWrapper ( res , 0 ) ; }
returns a complete copy of this object allocating a new Bytez capable of holding the data.

@return
returns a complete copy of this object allocating a new Bytez capable of holding the data .