uint32_t MamaRecordedMessageCodec::encodeF64(char*& buffer, MamaMsgField& mmf) { mama_f64_t mfv = mmf.getF64(); size_t s = sizeof(mfv); memcpy(buffer, &mfv, s); buffer += s; //printf("Encoding U16 Field [%d] = %g...\n", s, mfv); return s; }
void onUpdate (MamdaQuoteToBookListenerImpl& impl, const MamaMsgField& field) { mama_quantity_t askSize = field.getF64() * impl.mQuoteSizeMultiplier; if (impl.mQuoteCache.mAskSize != askSize) { impl.mQuoteCache.mAskSize = askSize; impl.mQuoteCache.mGotAskSize = true; } }
void onUpdate (MamdaFundamentalListener::MamdaFundamentalListenerImpl& impl, const MamaMsgField& field) { impl.mDividendPrice = field.getF64(); impl.mDividendPriceFieldState = MODIFIED; }
void onUpdate (MamdaFundamentalListener::MamdaFundamentalListenerImpl& impl, const MamaMsgField& field) { impl.mRiskFreeRate = field.getF64(); impl.mRiskFreeRateFieldState = MODIFIED; }
void onUpdate (MamdaFundamentalListener::MamdaFundamentalListenerImpl& impl, const MamaMsgField& field) { impl.mHistVolatility = field.getF64(); impl.mHistVolatilityFieldState = MODIFIED; }