本文整理匯總了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;
}
}