Function init [src]
Prototype
pub fn init(buffer: []u8, calls: []const Call) Reader
Parameters
buffer: []u8
calls: []const Call
Source
pub fn init(buffer: []u8, calls: []const Call) Reader {
return .{
.next_call_index = 0,
.next_offset = 0,
.interface = .{
.vtable = &.{ .stream = stream },
.buffer = buffer,
.seek = 0,
.end = 0,
},
.calls = calls,
};
}