35template <
template <
bool>
class Archive>
39 ar.serialize_varint(size);
40 if (
ar.remaining_bytes() < size)
46 std::unique_ptr<std::string::value_type[]>
buf(
new std::string::value_type[size]);
47 ar.serialize_blob(
buf.get(), size);
49 str.append(
buf.get(), size);
54template <
template <
bool>
class Archive>
57 size_t size =
str.size();
58 ar.serialize_varint(size);
59 ar.serialize_blob(
const_cast<std::string::value_type*
>(
str.c_str()), size);
binary_archive< false > ar
Definition cold-outputs.cpp:54
const char *const str
Definition portlistingparse.c:23
Simple DSL AAPI based on.
const char * buf
Definition slow_memmem.cpp:73
bool do_serialize(Archive< false > &ar, std::string &str)
Definition string.h:36