mirror of
https://github.com/ziglang/zig.git
synced 2025-12-05 22:03:06 +00:00
std.Io.File.readPositional fixed buffer type
This commit is contained in:
parent
3c647ca6bb
commit
476d7d939c
@ -215,7 +215,7 @@ pub fn openSelfExe(io: Io, flags: OpenFlags) OpenSelfExeError!File {
|
||||
|
||||
pub const ReadPositionalError = Reader.Error || error{Unseekable};
|
||||
|
||||
pub fn readPositional(file: File, io: Io, buffer: []u8, offset: u64) ReadPositionalError!usize {
|
||||
pub fn readPositional(file: File, io: Io, buffer: [][]u8, offset: u64) ReadPositionalError!usize {
|
||||
return io.vtable.fileReadPositional(io.userdata, file, buffer, offset);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user