Binarysave string class?

K

kaymes

Is there a string class available that is able to handle binary data that
may contain #0?
It should be similar to std::string, but not rely on null terminated data.

Konstantin

PS: Sorry, if that message happen to appear twice somewhere. I resent it
via another server it because it did not appear after over 6 hours.
 
I

Ivan Vecerina

| Is there a string class available that is able to handle binary data that
| may contain #0?
| It should be similar to std::string, but not rely on null terminated data.

std::string does *not* rely on null-terminated data.
To allow for NULL chars, all you need to avoid is functions that
take or return null-terminated strings.


hth - Ivan
 
R

Rolf Magnus

kaymes said:
Is there a string class available that is able to handle binary data
that may contain #0?

You mean '\0'?
It should be similar to std::string, but not rely on null terminated
data.

Then use std::string instead :)
It does not rely on null termination.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top