Function limitedReader [src]

Alias for std.io.limited_reader.limitedReader

Returns an initialised LimitedReader. bytes_left is a u64 to be able to take 64 bit file offsets

Prototype

pub fn limitedReader(inner_reader: anytype, bytes_left: u64) LimitedReader(@TypeOf(inner_reader))

Parameters

bytes_left: u64

Source

pub fn limitedReader(inner_reader: anytype, bytes_left: u64) LimitedReader(@TypeOf(inner_reader)) { return .{ .inner_reader = inner_reader, .bytes_left = bytes_left }; }