20 static constexpr unsigned int kSize = 0xf000;
68 void Write(
const void *data,
unsigned int size,
bool endOfStream)
override;
RingBuffer(unsigned int size)
Allocate and clear a buffer of size bytes, rounded down to whole words, with both pointers at its sta...
~StreamBuffer() override
Free the buffer.
static int SendStatus(int value, void *address)
Write a word to EE memory over SIF DMA.
void Notify() override
Send the free space to the EE when a notification is scheduled and the space is positive.
StreamBuffer(unsigned int size)
Allocate the buffer.
static constexpr unsigned int kSize
Buffer size in bytes.
Definition streambuffer.h:20
void SetStatusAddress(void *address)
Record the EE address that receives the free space, and write 1 there.
void Write(const void *data, unsigned int size, bool endOfStream) override
Append bytes and schedule a notification.
The packet StreamBuffer::SendStatus() sends.
Definition streambuffer.h:6
int mPadding[15]
Definition streambuffer.h:8
int mValue
Definition streambuffer.h:7