mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
replaced inStream() with reader()
`inStream()` is now deprecated and deserves replacing.
This commit is contained in:
parent
f3667e8a80
commit
8c4031fd87
@ -210,8 +210,8 @@ pub const ChildProcess = struct {
|
||||
|
||||
try child.spawn();
|
||||
|
||||
const stdout_in = child.stdout.?.inStream();
|
||||
const stderr_in = child.stderr.?.inStream();
|
||||
const stdout_in = child.stdout.?.reader();
|
||||
const stderr_in = child.stderr.?.reader();
|
||||
|
||||
// TODO https://github.com/ziglang/zig/issues/6343
|
||||
const stdout = try stdout_in.readAllAlloc(args.allocator, args.max_output_bytes);
|
||||
@ -843,7 +843,7 @@ fn readIntFd(fd: i32) !ErrInt {
|
||||
.capable_io_mode = .blocking,
|
||||
.intended_io_mode = .blocking,
|
||||
};
|
||||
return @intCast(ErrInt, file.inStream().readIntNative(u64) catch return error.SystemResources);
|
||||
return @intCast(ErrInt, file.reader().readIntNative(u64) catch return error.SystemResources);
|
||||
}
|
||||
|
||||
/// Caller must free result.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user