MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / write_string

Function write_string

src/doc/string_io.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using namespace base::serialization::little_endian;
22
23void write_string(std::ostream& os, const std::string& str)
24{
25 write16(os, (uint16_t)str.size());
26 if (!str.empty())
27 os.write(str.c_str(), str.size());
28}
29
30std::string read_string(std::istream& is)
31{

Callers 5

writeDocumentFileMethod · 0.85
writeLayerStructureMethod · 0.85
write_frame_tagFunction · 0.85
write_user_dataFunction · 0.85
write_layerFunction · 0.85

Calls 3

writeMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected