Logo Search packages:      
Sourcecode: einstein version File versions  Download package

size_t Buffer::putUtf8 ( const std::wstring &  string  ) 

Add string to buffer encoded in UTF-8 and advance current position by string length. String stored prefixed by string length. Grow buffer if needed.

string value to add.

Definition at line 86 of file buffer.cpp.

References putData(), and putInteger().

    std::string s(toUtf8(string));
    putData((const unsigned char*)s.c_str(), s.length());
    return 4 + s.length();

Generated by  Doxygen 1.6.0   Back to index