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

Function ReadAMFUndefined

src/brpc/amf.cpp:354–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354bool ReadAMFUndefined(AMFInputStream* stream) {
355 uint8_t marker;
356 if (stream->cut_u8(&marker) != 1u) {
357 LOG(ERROR) << "stream is not long enough";
358 return false;
359 }
360 if ((AMFMarker)marker == AMF_MARKER_UNDEFINED) {
361 return true;
362 }
363 LOG(ERROR) << "Expected undefined, actually " << marker2str(marker);
364 return false;
365}
366
367bool ReadAMFUnsupported(AMFInputStream* stream) {
368 uint8_t marker;

Callers

nothing calls this directly

Calls 2

marker2strFunction · 0.85
cut_u8Method · 0.80

Tested by

no test coverage detected