| 23 | } |
| 24 | |
| 25 | cc_result Stream_Write(struct Stream* s, const cc_uint8* buffer, cc_uint32 count) { |
| 26 | cc_uint32 write; |
| 27 | cc_result res; |
| 28 | |
| 29 | while (count) { |
| 30 | if ((res = s->Write(s, buffer, count, &write))) return res; |
| 31 | if (!write) return ERR_END_OF_STREAM; |
| 32 | |
| 33 | buffer += write; |
| 34 | count -= write; |
| 35 | } |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | static cc_result Stream_DefaultRead(struct Stream* s, cc_uint8* data, cc_uint32 count, cc_uint32* modified) { |
| 40 | return ERR_NOT_SUPPORTED; |
no outgoing calls
no test coverage detected