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

Function ToBigEndian

src/brpc/span.cpp:622–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622inline void ToBigEndian(uint64_t n, uint32_t* buf) {
623 buf[0] = htonl(n >> 32);
624 buf[1] = htonl(n & 0xFFFFFFFFUL);
625}
626
627inline uint64_t ToLittleEndian(const uint32_t* buf) {
628 return (((uint64_t)ntohl(buf[0])) << 32) | ntohl(buf[1]);

Callers 5

IndexMethod · 0.85
RemoveSpansBeforeMethod · 0.85
FindSpanFunction · 0.85
FindSpansFunction · 0.85
ListSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected