in orderbook-core/src/main/java/com/epam/deltix/orderbook/core/impl/L2Processor.java [78:94]
default boolean processSnapshot(final PackageHeaderInfo msg) {
final ObjectList<BaseEntryInfo> entries = msg.getEntries();
final int n = entries.size();
// skip statistic entries try to establish if we are dealing with order book reset or normal snapshot
for (int i = 0; i < n; i++) {
final BaseEntryInfo entry = entries.get(i);
if (entry instanceof L2EntryNewInfo) {
return processL2Snapshot(msg);
} else if (entry instanceof BookResetEntryInfo) {
final BookResetEntryInfo resetEntry = (BookResetEntryInfo) entry;
if (resetEntry.getModelType() == getQuoteLevels()) {
return processBookResetEntry(msg, resetEntry);
}
}
}
return false;
}