type | since v0.0-1424 | clojure.lang/ChunkBuffer | Edit |
ICounted
(ChunkBuffer. buf end)
(deftype ChunkBuffer [^:mutable buf ^:mutable end]
Object
(add [_ o]
(aset buf end o)
(set! end (inc end)))
(chunk [_]
(let [ret (ArrayChunk. buf 0 end)]
(set! buf nil)
ret))
ICounted
(-count [_] end))