| 77 | } |
| 78 | |
| 79 | size_t file_read(struct hc_stream *s, uint8_t *data, const size_t n) { |
| 80 | struct hc_file_stream *fs = hc_baseof(s, struct hc_file_stream, stream); |
| 81 | assert(fs->file); |
| 82 | return fread(data, n, 1, fs->file); |
| 83 | } |
| 84 | |
| 85 | size_t file_write(struct hc_stream *s, const uint8_t *data, const size_t n) { |
| 86 | struct hc_file_stream *fs = hc_baseof(s, struct hc_file_stream, stream); |
nothing calls this directly
no outgoing calls
no test coverage detected