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

Function ReadAMFNull

src/brpc/amf.cpp:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341bool ReadAMFNull(AMFInputStream* stream) {
342 uint8_t marker;
343 if (stream->cut_u8(&marker) != 1u) {
344 LOG(ERROR) << "stream is not long enough";
345 return false;
346 }
347 if ((AMFMarker)marker == AMF_MARKER_NULL) {
348 return true;
349 }
350 LOG(ERROR) << "Expected null, actually " << marker2str(marker);
351 return false;
352}
353
354bool ReadAMFUndefined(AMFInputStream* stream) {
355 uint8_t marker;

Callers 11

OnStatusMethod · 0.85
OnPlayMethod · 0.85
OnPlay2Method · 0.85
OnDeleteStreamMethod · 0.85
OnCloseStreamMethod · 0.85
OnPublishMethod · 0.85
OnReleaseStreamMethod · 0.85
OnFCPublishMethod · 0.85
OnFCUnpublishMethod · 0.85
OnSeekMethod · 0.85
OnPauseMethod · 0.85

Calls 2

marker2strFunction · 0.85
cut_u8Method · 0.80

Tested by

no test coverage detected