MCPcopy Create free account
hub / github.com/VCVRack/Rack / endData

Method endData

include/dsp/ringbuffer.hpp:121–124  ·  view source on GitHub ↗

Returns a pointer to S consecutive elements for appending. If any data is appended, you must call endIncr afterwards. Pointer is invalidated when any other method is called. */

Source from the content-addressed store, hash-verified

119 Pointer is invalidated when any other method is called.
120 */
121 T* endData() {
122 size_t i = end % S;
123 return &data[i];
124 }
125 void endIncr(size_t n) {
126 size_t i = end % S;
127 size_t e1 = i + n;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected