MCPcopy Create free account
hub / github.com/FastLED/FastLED / assign

Method assign

src/fl/stl/circular_buffer.h:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 : mData(data), mCapacity(capacity), mHead(0), mTail(0), mFull(false) {}
20
21 void assign(T* data, fl::size capacity) {
22 mData = data;
23 mCapacity = capacity;
24 mHead = 0;
25 mTail = 0;
26 mFull = false;
27 }
28
29 bool push_back(const T &value) {
30 if (mCapacity == 0) return false;

Callers 3

circular_bufferMethod · 0.45
circular_bufferClass · 0.45
resizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected