Function bones_framework::prelude::piccolo::io::buffered_read

pub fn buffered_read<R>(r: R) -> Result<BufReader<R>, Error>
where R: Read,
Expand description

Reads a Lua script from a R: Read and wraps it in a BufReader

Also calls skip_prefix to skip any leading UTF-8 BOM or unix shebang.