Added pausemark support to DTSC::Stream and fixes several minor bugs.

This commit is contained in:
Thulinma 2012-09-03 12:22:40 +02:00
parent 9bf92add4f
commit 932c0e5b7b
3 changed files with 15 additions and 8 deletions

View file

@ -406,7 +406,7 @@ std::string & JSON::Value::toNetPacked(){
std::string packed = toPacked();
strVal.resize(packed.size() + 8);
//insert proper header for this type of data
if (isMember("data")){
if (isMember("datatype")){
memcpy((void*)strVal.c_str(), "DTPD", 4);
}else{
memcpy((void*)strVal.c_str(), "DTSC", 4);