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

Method ByteSize

src/brpc/ts.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297size_t TsPacket::ByteSize() const {
298 size_t sz = 4;
299 if (_adaptation_field) {
300 sz +=_adaptation_field->ByteSize();
301 }
302 if (_payload) {
303 sz += _payload->ByteSize();
304 }
305 return sz;
306}
307
308int TsPacket::Encode(void* data) const {
309 char* p = (char*)data;

Callers 10

TEST_FFunction · 0.45
TESTFunction · 0.45
EncodeMethod · 0.45
AddPaddingMethod · 0.45
PsiByteSizeMethod · 0.45
PsiEncodeMethod · 0.45
EncodePATPMTMethod · 0.45
EncodePESMethod · 0.45
GetProtobufByteSizeFunction · 0.45
ProcessRedisResponseFunction · 0.45

Calls 1

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36