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

Function write_cel

src/doc/cel_io.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using namespace base::serialization::little_endian;
24
25void write_cel(std::ostream& os, const Cel* cel)
26{
27 write32(os, cel->id());
28 write16(os, cel->frame());
29 write32(os, cel->dataRef()->id());
30}
31
32Cel* read_cel(std::istream& is, SubObjectsIO* subObjects, bool setId)
33{

Callers 3

writeCelMethod · 0.85
onUndoMethod · 0.85
write_layerFunction · 0.85

Calls 3

dataRefMethod · 0.80
idMethod · 0.45
frameMethod · 0.45

Tested by

no test coverage detected