Function seekTo [src]
Prototype
pub fn seekTo(self: *StreamSource, pos: u64) SeekError!void
Parameters
self: *StreamSource
pos: u64
Source
pub fn seekTo(self: *StreamSource, pos: u64) SeekError!void {
switch (self.*) {
.buffer => |*x| return x.seekTo(pos),
.const_buffer => |*x| return x.seekTo(pos),
.file => |x| if (!has_file) unreachable else return x.seekTo(pos),
}
}