MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_memory_stream

Class hc_memory_stream

stream1/stream1.c:132–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131size_t memory_read(struct hc_stream *s, uint8_t *data, size_t n) {
132 struct hc_memory_stream *ms = hc_baseof(s, struct hc_memory_stream, stream);
133
134 if (ms->rpos + n > ms->data.length) {
135 n = ms->data.length - ms->rpos;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected