Function reader [src]

Defaults to positional reading; falls back to streaming. Positional is more threadsafe, since the global seek position is not affected.

Prototype

pub fn reader(file: File, buffer: []u8) Reader

Parameters

file: Filebuffer: []u8

Source

pub fn reader(file: File, buffer: []u8) Reader { return .init(file, buffer); }