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

Function pb_readslice

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

Source from the content-addressed store, hash-verified

523}
524
525PB_API size_t pb_readslice(pb_Slice *s, size_t len, pb_Slice *pv) {
526 if (pb_len(*s) < len)
527 return 0;
528 pv->start = s->start;
529 pv->p = s->p;
530 pv->end = s->p + len;
531 s->p = pv->end;
532 return len;
533}
534
535PB_API size_t pb_readbytes(pb_Slice *s, pb_Slice *pv) {
536 const char *p = s->p;

Callers 2

lpb_readbytesFunction · 0.85
lpb_unpackscalarFunction · 0.85

Calls 1

pb_lenFunction · 0.85

Tested by

no test coverage detected