| 227 | } |
| 228 | |
| 229 | void Stream_ReadonlyPortion(struct Stream* s, struct Stream* source, cc_uint32 len) { |
| 230 | Stream_Init(s); |
| 231 | s->Read = Stream_PortionRead; |
| 232 | s->ReadU8 = Stream_PortionReadU8; |
| 233 | s->Skip = Stream_PortionSkip; |
| 234 | s->Position = Stream_PortionPosition; |
| 235 | s->Length = Stream_PortionLength; |
| 236 | |
| 237 | s->meta.portion.source = source; |
| 238 | s->meta.portion.left = len; |
| 239 | s->meta.portion.length = len; |
| 240 | } |
| 241 | |
| 242 | |
| 243 | /*########################################################################################################################* |
no test coverage detected