Skip to content

Commit

Permalink
Allow AbstractVector in readbytes
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 23, 2024
1 parent 12bae54 commit afaf0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sockets/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afaf0ab

Please # to comment.