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

Function pb_slice

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

Source from the content-addressed store, hash-verified

405/* decode */
406
407PB_API pb_Slice pb_slice(const char *s)
408{ return s ? pb_lslice(s, strlen(s)) : pb_lslice(NULL, 0); }
409
410PB_API size_t pb_pos(const pb_Slice s) { return s.p - s.start; }
411PB_API size_t pb_len(const pb_Slice s) { return s.end - s.p; }

Callers 3

pbL_loadFileFunction · 0.85
lpb_tosliceFunction · 0.85
lpb_pushdeffieldFunction · 0.85

Calls 1

pb_lsliceFunction · 0.85

Tested by

no test coverage detected