typeErasedReadFn
Function parameters
Parameters
- context:*const anyopaque
- buffer:[]u8
Type definitions in this namespace
Types
Deprecated in favor of `Reader`.
Functions
- GenericReader
- Deprecated in favor of `Reader`.
- GenericWriter
- Deprecated in favor of `Writer`.
- FixedBufferStream
- Deprecated in favor of `Reader`.
- fixedBufferStream
- Deprecated in favor of `Reader`.
- CountingReader
- Deprecated with no replacement; inefficient pattern
- countingReader
- Deprecated with no replacement; inefficient pattern
- PollFiles
- Given an enum, returns a struct with fields of that enum, each field
Deprecated in favor of `Writer.Discarding`.
Values
- null_writer
- Deprecated in favor of `Writer.Discarding`.
Source
Implementation
fn typeErasedReadFn(context: *const anyopaque, buffer: []u8) anyerror!usize {
const ptr: *const Context = @ptrCast(@alignCast(context));
return readFn(ptr.*, buffer);
}