vibe.d beta banner
get vibe.d
0.8.0

Asynchronous I/O that doesn’t get in your way, written in D

Struct FixedRingBuffer

struct FixedRingBuffer(T, ulong N = 0, bool INITIALIZE = true) ;

Fields

Fields

NameTypeDescription
m_fillsize_t
m_startsize_t

Properties

Properties

NameTypeDescription
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

Methods

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

Inner structs

Inner structs

NameDescription
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.