コード例 #1
0
uint32_t MamaRecordedMessageCodec::encodeU64(char*& buffer, MamaMsgField& mmf)
{

	mama_u64_t mfv = mmf.getU64();
	size_t s = sizeof(mfv);
	memcpy(buffer, &mfv, s);
	buffer += s;
	//printf("Encoding U64 Field [%d] = ..%llu...\n", s, mfv);
	return s;
}
コード例 #2
0
 void onUpdate (MamdaFundamentalListener::MamdaFundamentalListenerImpl&  impl,
                const MamaMsgField&                                      field)
 {
     impl.mSharesFloat = field.getU64();
     impl.mSharesFloatFieldState = MODIFIED;
 }