Skip to content

Commit 935f1b0

Browse files
committed
Add constructor of CircularVectorBuffer
1 parent 3cd7994 commit 935f1b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CircularArrayBuffers.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ end
1717

1818
const CircularVectorBuffer{T} = CircularArrayBuffer{T, 1}
1919

20+
CircularVectorBuffer{T}(n::Integer) where T = CircularArrayBuffer{T}(n)
21+
2022
function CircularArrayBuffer{T}(d::Integer...) where {T}
2123
N = length(d)
2224
CircularArrayBuffer(Array{T}(undef, d...), 1, 0, N == 1 ? 1 : *(d[1:end-1]...))

0 commit comments

Comments
 (0)