}
@Override
public void writeData(LPDataOutputStream data) throws IOException {
super.writeData(data);
LPDataOutputStream out = new LPDataOutputStream();
renderState.writeData(out);
byte[] bytes = out.toByteArray();
data.writeInt(bytes.length);
data.write(bytes);
out = new LPDataOutputStream();
coreState.writeData(out);
bytes = out.toByteArray();
data.writeInt(bytes.length);
data.write(bytes);
out = new LPDataOutputStream();
bcCoreState.writeData(out);
bytes = out.toByteArray();
data.writeInt(bytes.length);
data.write(bytes);
out = new LPDataOutputStream();
pipe.writeData(out);
bytes = out.toByteArray();
data.writeInt(bytes.length);
data.write(bytes);
}