@@ -11,7 +11,7 @@ using Sockets
1111using MbedTLS: SSLContext, MbedException
1212using OpenSSL: SSLStream
1313
14- export bytes, isbytes, nbytes, ByteView, nobytes,
14+ export bytes, isbytes, nbytes, nobytes,
1515 startwrite, closewrite, startread, closeread, readuntil,
1616 tcpsocket, localport, safe_getpeername
1717
@@ -104,7 +104,6 @@ function safe_getpeername(io)
104104end
105105
106106
107- const ByteView = typeof (view (UInt8[], 1 : 0 ))
108107const nobytes = view (UInt8[], 1 : 0 )
109108
110109readuntil (args... ) = Base. readuntil (args... )
@@ -114,8 +113,8 @@ Read from an `IO` stream until `find_delimiter(bytes)` returns non-zero.
114113Return view of bytes up to the delimiter.
115114"""
116115function readuntil (buf:: IOBuffer ,
117- find_delimiter:: F #= Vector{UInt8} -> Int =#
118- ):: ByteView where {F <: Function }
116+ find_delimiter:: F #= Vector{UInt8} -> Int =#
117+ ) where {F <: Function }
119118 l = find_delimiter (view (buf. data, buf. ptr: buf. size))
120119 if l == 0
121120 return nobytes
0 commit comments