src/main/java/org/nustaq/serialization/simpleapi/OffHeapCoder.java
public int toMemory(Object o, long address, int availableSize) throws IOException {
        out.resetForReUse();
        writeTarget.setBase(address, availableSize);
        out.writeObject(o);
        int written = out.getWritten();
        return written;
    }
public int toMemory(Object o, long address, int availableSize) throws IOException {
        out.resetForReUse();
        writeTarget.setBase(address, availableSize);
        out.writeObject(o);
        int written = out.getWritten();
        return written;
    }
public int toMemory ( Object o , long address , int availableSize ) throws IOException { out . resetForReUse ( ) ; writeTarget . setBase ( address , availableSize ) ; out . writeObject ( o ) ; int written = out . getWritten ( ) ; return written ; }
throws FSTBufferTooSmallException in case object does not fit into given range

@param o
@param address
@param availableSize
@throws IOException
@return number of bytes written to the memory region
throws FSTBufferTooSmallException in case object does not fit into given range