yapBytes.useSlot(id[0], 0, bytes.length);
return yapBytes;
}
public byte[] marshall(Object obj, int[] id) {
MemoryFile memoryFile = new MemoryFile();
memoryFile.setInitialSize(223);
memoryFile.setIncrementSizeBy(300);
produceYapClass(reflector().forObject(obj));
TransportObjectContainer carrier = new TransportObjectContainer(config(),_this, memoryFile);
carrier.i_showInternalClasses = i_showInternalClasses;
carrier.set(obj);
id[0] = (int) carrier.getID(obj);
carrier.close();
return memoryFile.getBytes();
}