Lines Matching refs:storage
79 // A ring buffer with externally provided storage that encodes its state in 8
80 // bytes. Has significant constraints on size and alignment of storage.
93 void Init(void *storage, uptr size) {
100 CHECK_EQ((uptr)storage % (size * 2), 0);
101 long_ = (uptr)storage | ((size >> kPageSizeBits) << kSizeShift);
109 CompactRingBuffer(void *storage, uptr size) {
110 Init(storage, size);
114 CompactRingBuffer(const CompactRingBuffer &other, void *storage) {
116 internal_memcpy(storage, other.StartOfStorage(), size);
117 Init(storage, size);
119 SetNext((const T *)storage + Idx);