| 130 | |
| 131 | size_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; |
nothing calls this directly
no outgoing calls
no test coverage detected