Added pausemark support to DTSC::Stream and fixes several minor bugs.
This commit is contained in:
parent
9bf92add4f
commit
932c0e5b7b
3 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue