class Ringbuffer
Defined at line 12 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.h
Public Methods
bool IsOffsetPopulated (uint32_t offset)
Returns whether |offset| points to a currently stored value in the ringbuffer.
Defined at line 7 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.cc
void Ringbuffer (std::unique_ptr<MsdVsiBuffer> && buffer, uint32_t size)
Defined at line 14 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.h
bool Overwrite32 (uint32_t offset, uint32_t value)
Replaces the value stored in the ringbuffer at |offset| with |value|.
Returns false if |offset| does not point to a currently stored
value in the ringbuffer.
Defined at line 15 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.cc
uint32_t SubtractOffset (uint32_t offset)
Returns the position corresponding to negative |offset| from the current tail.
Defined at line 24 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.cc
bool ReserveContiguous (uint32_t want_bytes)
Advances the ringbuffer tail so that the next write(s) totalling |want_bytes| will be
contiguous.
Returns whether the requested number of contiguous bytes were available,
and any required ringbuffer tail adjustment was made.
If false, the caller should wait for an existing event to be removed
from the ringbuffer before trying again.
Defined at line 28 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.cc
uint32_t UsedSize ()
Returns the number of bytes between the ringbuffer head and tail.
Defined at line 37 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.h
uint32_t * Buffer ()
Returns the underlying buffer containing the ringbuffer contents.
Defined at line 40 of file ../../src/graphics/drivers/msd-vsi-vip/src/ringbuffer.h
Friends
class RingbufferTest_OffsetPopulatedTailBeforeHead_Test
class RingbufferTest_OffsetPopulatedHeadBeforeTail_Test
class RingbufferTest