void onUpdate (MamdaQuoteToBookListenerImpl&  impl,
                   const MamaMsgField&            field)
    {
        MamaPrice bidPrice;
        field.getPrice(bidPrice);

        if (impl.mQuoteCache.mBidPrice != bidPrice)
        {
            impl.mQuoteCache.mBidPrice = bidPrice;
            impl.mQuoteCache.mGotBidPrice = true;
        }
    }
    void onUpdate (MamdaQuoteToBookListenerImpl&  impl,
                   const MamaMsgField&            field)
    {
        MamaPrice askPrice;
        field.getPrice (askPrice);

        if (impl.mQuoteCache.mAskPrice != askPrice)
        {
            impl.mQuoteCache.mAskPrice = askPrice;
            impl.mQuoteCache.mGotAskPrice = true;
        }
    }
uint32_t MamaRecordedMessageCodec::encodePrice(char*& buffer, MamaMsgField& mmf)
{
	// Creates format of [8 bytes value|4 bytes mamaPricePrecision|1 byte mamaPriceHints]
	mmf.getPrice(*mTempMamaPrice);
	double v = mTempMamaPrice->getValue();
	mamaPricePrecision mpp = mTempMamaPrice->getPrecision();
	mamaPriceHints mph = mTempMamaPrice->getHints();
	printf("value: %d, value: %d, value: %d\n", sizeof(v), sizeof(mpp), sizeof(mph));
	size_t s = sizeof(v) + sizeof(mpp) + sizeof(mph);
	memcpy(buffer, &v, sizeof(v));
	memcpy(buffer, &mpp, sizeof(mpp));
	memcpy(buffer, &mph, sizeof(mph));
	buffer += s;
	//printf("Encoding MamaPrice Field [%d] = %g...\n", s, v);
	return s;
}