MCPcopy Create free account
hub / github.com/Tencent/UnLua / pb_readfixed64

Function pb_readfixed64

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.h:511–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511PB_API size_t pb_readfixed64(pb_Slice *s, uint64_t *pv) {
512 int i;
513 uint64_t n = 0;
514 if (s->p + 8 > s->end)
515 return 0;
516 for (i = 7; i >= 0; --i) {
517 n <<= 8;
518 n |= s->p[i] & 0xFF;
519 }
520 s->p += 8;
521 *pv = n;
522 return 8;
523}
524
525PB_API size_t pb_readslice(pb_Slice *s, size_t len, pb_Slice *pv) {
526 if (pb_len(*s) < len)

Callers 2

lpb_readtypeFunction · 0.85
lpb_unpackscalarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected