mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Toss lots of custom CString code
We already have a C standard library, so let's not reimplement it.
This commit is contained in:
@ -367,11 +367,10 @@ int plMsgXtlStringHelper::Peek(xtl::istring & stringref, hsStream* stream, const
|
||||
// STATIC
|
||||
int plMsgCStringHelper::Poke(const char * str, hsStream* stream, const uint32_t peekOptions)
|
||||
{
|
||||
plMessage::plStrLen strlen;
|
||||
strlen = (str)?hsStrlen(str):0;
|
||||
stream->WriteLE(strlen);
|
||||
plMessage::plStrLen len = (str) ? strlen(str) : 0;
|
||||
stream->WriteLE(len);
|
||||
if (strlen)
|
||||
stream->Write(strlen,str);
|
||||
stream->Write(len,str);
|
||||
return stream->GetPosition();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user