/**
* Read a snapshot with a state currently populated. This is the "heap-friendly" version
*/
private void readSnapshotTypesDoubleSnapshotRefresh(StreamingByteData byteData, DataInputStream dis, int numTypes) throws IOException {
ByteArrayOrdinalMap serializedRepresentationMap = new ByteArrayOrdinalMap();
stateEngine.prepareForDoubleSnapshotRefresh();
for(int i=0;i<numTypes;i++) {
/// type flags byte -- reserved for later use
dis.read();
FastBlobSchema schema = FastBlobSchema.readFrom(dis);
readTypeStateObjectsDoubleSnapshotRefresh(byteData, schema, serializedRepresentationMap);
serializedRepresentationMap.clear();
}
stateEngine.cleanUpAfterDoubleSnapshotRefresh();
}