MCPcopy Create free account
hub / github.com/apache/brpc / WriteAMFNumber

Function WriteAMFNumber

src/brpc/amf.cpp:961–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961void WriteAMFNumber(double val, AMFOutputStream* stream) {
962 stream->put_u8(AMF_MARKER_NUMBER);
963 uint64_t* uptr = (uint64_t*)&val;
964 stream->put_u64(*uptr);
965}
966
967void WriteAMFUint32(uint32_t val, AMFOutputStream* stream) {
968 return WriteAMFNumber((double)val, stream);

Callers 8

PlayMethod · 0.85
SeekMethod · 0.85
PauseMethod · 0.85
WriteAMFUint32Function · 0.85
OnCreateStreamMethod · 0.85
SendFMLEStartResponseFunction · 0.85
OnSeekMethod · 0.85
OnPauseMethod · 0.85

Calls 2

put_u8Method · 0.80
put_u64Method · 0.80

Tested by

no test coverage detected