MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / endComplex

Method endComplex

MonaCore/sources/AMFWriter.cpp:254–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void AMFWriter::endComplex(bool isObject) {
255 if(_levels.empty()) {
256 ERROR("endComplex called without beginComplex calling");
257 return;
258 }
259
260 if(isObject) {
261 if(!_amf3) {
262 packet.write16(0);
263 packet.write8(AMF_END_OBJECT);
264 } else
265 packet.write8(01); // end marker
266 }
267
268 _amf3 = _levels.back();
269 _levels.pop_back();
270}
271
272
273} // namespace Mona

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected