From acfd7b269c565a6b5bb197b55c2c210732c23345 Mon Sep 17 00:00:00 2001 From: KristofferC Date: Tue, 29 Oct 2024 11:12:38 +0100 Subject: [PATCH] fix a forgotten rename `readuntil` -> `copyuntil` --- base/stream.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/stream.jl b/base/stream.jl index 2f00538ad0e96..488acd41d2a9e 100644 --- a/base/stream.jl +++ b/base/stream.jl @@ -1028,7 +1028,7 @@ function readavailable(this::LibuvStream) return bytes end -function readuntil(x::LibuvStream, c::UInt8; keep::Bool=false) +function copyuntil(out::IO, x::LibuvStream, c::UInt8; keep::Bool=false) iolock_begin() buf = x.buffer @assert buf.seekable == false @@ -1058,9 +1058,9 @@ function readuntil(x::LibuvStream, c::UInt8; keep::Bool=false) end end end - bytes = readuntil(buf, c, keep=keep) + copyuntil(out, buf, c; keep) iolock_end() - return bytes + return out end uv_write(s::LibuvStream, p::Vector{UInt8}) = GC.@preserve p uv_write(s, pointer(p), UInt(sizeof(p)))