本文整理匯總了C#中Wombat.MamaMsg.getF64方法的典型用法代碼示例。如果您正苦於以下問題:C# MamaMsg.getF64方法的具體用法?C# MamaMsg.getF64怎麽用?C# MamaMsg.getF64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Wombat.MamaMsg
的用法示例。
在下文中一共展示了MamaMsg.getF64方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: getLevelInfo
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()));
}
示例2: getEntryInfo
void getEntryInfo(
MamdaOrderBookEntry entry,
MamaMsg entMsg,
MamdaOrderBookPriceLevel level)
{
entry.setAction((MamdaOrderBookEntry.Actions)entMsg.getChar(
MamdaOrderBookFields.ENTRY_ACTION, 'D'));
entry.setId(entMsg.getString(MamdaOrderBookFields.ENTRY_ID));
entry.setSize((long)entMsg.getF64(MamdaOrderBookFields.ENTRY_SIZE, 0));
entry.setTime(entMsg.getDateTime(MamdaOrderBookFields.ENTRY_TIME, level.getTime()));
}