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

Method AsString

src/brpc/amf.h:169–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 bool IsArray() const { return _type == AMF_MARKER_STRICT_ARRAY; }
168
169 butil::StringPiece AsString() const
170 { return butil::StringPiece((_is_shortstr ? _shortstr : _str), _strsize); }
171 bool AsBool() const { return _b; }
172 double AsNumber() const { return _num; }
173 const AMFObject& AsObject() const { return *_obj; }

Callers 3

WriteAMFFieldFunction · 0.80
amf.cppFile · 0.80
OnCreateStreamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected