MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / read

Method read

modules/core/core/include/SkrContainers/span.hpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 skr::span<const uint8_t> data;
97 size_t offset = 0;
98 int read(void* dst, size_t size)
99 {
100 if (offset + size > data.size())
101 return -1;
102 memcpy(dst, data.data() + offset, size);
103 offset += size;
104 return 0;
105 }
106};
107
108struct SpanReaderBitpacked {

Callers 3

imguir_render_draw_dataFunction · 0.45
executeMethod · 0.45
_init_fontFunction · 0.45

Calls 3

memcpyFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected