vibe.d beta banner
get vibe.d
0.7.30

Struct FixedRingBuffer

Template arguments

struct FixedRingBuffer(T, ulong N, bool INITIALIZE);

Fields

Name Type Description
m_fill size_t
m_start size_t

Properties

Name Type Description
back [get] inout(T)
capacity [get] size_t
empty [get] bool
freeSpace [get] size_t
front [get] inout(T)
full [get] bool
length [get] size_t

Methods

Name Description
clear
mod
opApply iterate through elements with index
opApply
opDollar
opIndex
opSlice
opSlice
peek
peekDst
popBack
popBackN
popFront
popFrontN
put
put
putN
read
removeAt

Inner structs

Name Description
Range

TODO

clear ring buffer fields upon removal (to run struct destructors, if T is a struct)

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.