@@ -123,19 +123,20 @@ function IOBuffer(;
123123 return buf
124124end
125125
126- # PipeBuffers behave like Unix Pipes. They are typically readable and writable, they act appendable, and are not seekable.
126+ # PipeBuffers behave somewhat more like Unix Pipes (than Files). They are typically readable and writable, they act appendable, and are not seekable.
127+ # However, they do not support stream notification, so for that there is the BufferStream wrapper around this.
127128
128129"""
129- PipeBuffer(data::Vector {UInt8}=UInt8[]; maxsize::Integer = typemax(Int))
130+ PipeBuffer(data::AbstractVector {UInt8}=UInt8[]; maxsize::Integer = typemax(Int))
130131
131132An [`IOBuffer`](@ref) that allows reading and performs writes by appending.
132133Seeking and truncating are not supported.
133134See [`IOBuffer`](@ref) for the available constructors.
134135If `data` is given, creates a `PipeBuffer` to operate on a data vector,
135136optionally specifying a size beyond which the underlying `Array` may not be grown.
136137"""
137- PipeBuffer (data:: Vector {UInt8}= UInt8[]; maxsize:: Int = typemax (Int)) =
138- GenericIOBuffer (data,true ,true ,false ,true ,maxsize)
138+ PipeBuffer (data:: AbstractVector {UInt8}= UInt8[]; maxsize:: Int = typemax (Int)) =
139+ GenericIOBuffer (data, true , true , false , true , maxsize)
139140PipeBuffer (maxsize:: Integer ) = (x = PipeBuffer (StringVector (maxsize), maxsize = maxsize); x. size= 0 ; x)
140141
141142_similar_data (b:: GenericIOBuffer , len:: Int ) = similar (b. data, len)
0 commit comments