本文整理汇总了C#中Wombat.MamaMsg.getI64方法的典型用法代码示例。如果您正苦于以下问题:C# MamaMsg.getI64方法的具体用法?C# MamaMsg.getI64怎么用?C# MamaMsg.getI64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wombat.MamaMsg
的用法示例。
在下文中一共展示了MamaMsg.getI64方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: handleStandardFields
private void handleStandardFields(MamdaSubscription subscription,
MamaMsg msg,
bool checkSeqNum)
{
if (mSymbol == null)
msg.tryString (MamdaCommonFields.SYMBOL, ref mSymbol);
if (mPartId == null)
{
if ((!msg.tryString (MamdaOrderBookFields.PART_ID, ref mPartId)) && (mSymbol != null))
{
// No explicit part ID in message, but maybe in symbol.
int lastDot = mSymbol.IndexOf (".");
if (lastDot != -1)
{
lastDot++;
int lastChar = mSymbol.Length;
if (lastDot != lastChar)
{
mPartId = mSymbol.Substring (lastDot, (lastChar-lastDot));
}
}
}
}
msg.tryDateTime (MamdaOrderBookFields.SRC_TIME, ref mSrcTime);
msg.tryDateTime (MamdaOrderBookFields.ACTIVITY_TIME, ref mActivityTime);
msg.tryDateTime (MamdaOrderBookFields.LINE_TIME, ref mLineTime);
msg.tryDateTime (MamaReservedFields.SendTime, ref mSendTime);
mEventTime = msg.getDateTime (MamdaOrderBookFields.BOOK_TIME, mSrcTime);
long seqNum = msg.getI64(MamaReservedFields.SeqNum);
if (checkSeqNum && (seqNum != (mEventSeqNum + 1)))
{
mGapBegin = mEventSeqNum + 1;
mGapEnd = seqNum - 1;
mEventSeqNum = seqNum;
invokeGapHandlers (subscription, msg);
}
else
{
mEventSeqNum = seqNum;
}
}