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

Function ReadAMFUnsupported

src/brpc/amf.cpp:367–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367bool ReadAMFUnsupported(AMFInputStream* stream) {
368 uint8_t marker;
369 if (stream->cut_u8(&marker) != 1u) {
370 LOG(ERROR) << "stream is not long enough";
371 return false;
372 }
373 if ((AMFMarker)marker == AMF_MARKER_UNSUPPORTED) {
374 return true;
375 }
376 LOG(ERROR) << "Expected unsupported, actually " << marker2str(marker);
377 return false;
378}
379
380static bool ReadAMFObjectBody(google::protobuf::Message* message,
381 AMFInputStream* stream);

Callers

nothing calls this directly

Calls 2

marker2strFunction · 0.85
cut_u8Method · 0.80

Tested by

no test coverage detected