private void getLevelInfo(
MamdaOrderBookPriceLevel level,
MamaMsg plMsg,
MamdaOrderBook deltaBook)
{
level.setPrice(plMsg.getPrice(MamdaOrderBookFields.PL_PRICE));
level.setSize((long)plMsg.getF64(MamdaOrderBookFields.PL_SIZE, 0));
level.setNumEntries((int)plMsg.getF64(MamdaOrderBookFields.PL_NUM_ENTRIES, 1));
level.setAction((MamdaOrderBookPriceLevel.Actions)plMsg.getChar(
MamdaOrderBookFields.PL_ACTION, 'A'));
level.setSide((MamdaOrderBookPriceLevel.Sides)plMsg.getChar(
MamdaOrderBookFields.PL_SIDE, 'B'));
/* Optional order book fields: */
level.setSizeChange((long)plMsg.getF64(MamdaOrderBookFields.PL_SIZE_CHANGE, 0)); //default 0
level.setTime(plMsg.getDateTime(MamdaOrderBookFields.PL_TIME, deltaBook.getBookTime()));
}