From afaf0ab73d0e27dec7de376cfde51b1fcbe7ec30 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Fri, 23 Aug 2024 16:19:17 -0600 Subject: [PATCH] Allow AbstractVector in readbytes --- src/sockets/client.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sockets/client.jl b/src/sockets/client.jl index 7ac7443..9c51fbf 100644 --- a/src/sockets/client.jl +++ b/src/sockets/client.jl @@ -297,7 +297,7 @@ Base.skip(sock::Client, n) = skip(sock.readbuf, n) Base.bytesavailable(sock::Client) = bytesavailable(sock.readbuf) Base.eof(sock::Client) = eof(sock.readbuf) Base.isopen(sock::Client) = sock.slot == C_NULL ? false : aws_socket_is_open(aws_socket_handler_get_socket(FieldRef(sock, :handler))) -Base.readbytes!(sock::Client, buf::Vector{UInt8}, nb=length(buf)) = readbytes!(sock.readbuf, buf, nb) +Base.readbytes!(sock::Client, buf::AbstractVector{UInt8}, nb=length(buf)) = readbytes!(sock.readbuf, buf, nb) function Base.close(sock::Client) close(sock.ch)