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

Function ReadAMFArrayBody

src/brpc/amf.cpp:845–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845static bool ReadAMFArrayBody(AMFArray* arr, AMFInputStream* stream) {
846 uint32_t count = 0;
847 if (stream->cut_u32(&count) != 4u) {
848 LOG(ERROR) << "stream is not long enough";
849 return false;
850 }
851 for (uint32_t i = 0; i < count; ++i) {
852 if (!ReadAMFArrayItem(stream, arr)) {
853 return false;
854 }
855 }
856 return true;
857}
858
859bool ReadAMFArray(AMFArray* arr, AMFInputStream* stream) {
860 uint8_t marker;

Callers 3

ReadAMFObjectFieldFunction · 0.85
ReadAMFArrayItemFunction · 0.85
ReadAMFArrayFunction · 0.85

Calls 2

ReadAMFArrayItemFunction · 0.85
cut_u32Method · 0.80

Tested by

no test coverage detected