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

Method writeString

MonaCore/sources/HTTP/HTTP.cpp:411–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 }
410 UInt64 writeBytes(const UInt8* data, UInt32 size) { writeString((const char*)data, size); return 0; }
411 void writeString(const char* value, UInt32 size) {
412 if (_key.empty() && size && _option==VALUE) {
413 _key.assign(value, size);
414 String::Append(_buffer, _key, "=");
415 }
416 else if ((_option <= 2 || (String::ICompare(value, "false", size) != 0 && String::ICompare(value, "no", size) != 0 && String::ICompare(value, "0", size) != 0 && String::ICompare(value, "off", size) != 0 && String::ICompare(value, "null", size) != 0))&& writeHeader()) {
417 writeContent<Buffer>(value, size);
418 _option = NO;
419 }
420 }
421 void writeNumber(double value) {
422 if ((_option <= 2 || value) && writeHeader()) {
423 if (_option == EXPIRES) {

Callers 2

WSWriter.cppFile · 0.45
writeMediaMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected