mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Io.File.readPositional fixed buffer type
This commit is contained in:
parent
3c647ca6bb
commit
476d7d939c
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ pub fn openSelfExe(io: Io, flags: OpenFlags) OpenSelfExeError!File {
|
||||||
|
|
||||||
pub const ReadPositionalError = Reader.Error || error{Unseekable};
|
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);
|
return io.vtable.fileReadPositional(io.userdata, file, buffer, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue