本文整理汇总了C#中Wombat.MamaMsg.getChar方法的典型用法代码示例。如果您正苦于以下问题:C# MamaMsg.getChar方法的具体用法?C# MamaMsg.getChar怎么用?C# MamaMsg.getChar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wombat.MamaMsg
的用法示例。
在下文中一共展示了MamaMsg.getChar方法的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()));
}