|
wavelength 1.0.0
|
Header of one datagram in the ring buffer of an AsyncInfo. More...
#include <asyncblock.h>

Public Member Functions | |
| int | InitRing (unsigned int size) |
| Turn a buffer into a ring buffer of one empty block. | |
| int | MeasureFree (unsigned int size, unsigned int *free) |
| Measure the empty blocks that start here. | |
Static Public Member Functions | |
| static AsyncBlock * | At (unsigned char *ring, unsigned int offset) |
| The block that starts a byte offset into a ring buffer. | |
Public Attributes | |
| int | mUsed |
| int | mPadding |
| unsigned int | mCapacity |
| unsigned int | mLength |
| sceInetAddress | mAddress |
| int | mPort |
| int | mFlags |
| int | mResult |
| AsyncBlock * | mSelf |
| unsigned int | mReserved [3] |
| int | mValid |
| unsigned char | mData [] |
Static Public Attributes | |
| static constexpr unsigned int | kHeaderSize = 0x40 |
| Size of the header, and the granularity of the ring buffer. | |
Header of one datagram in the ring buffer of an AsyncInfo.
The datagram follows the header, and the next header follows the datagram's capacity. The ring buffer has a copy in EE memory that each side updates by SIF DMA.
The module was built without RTTI. The name is inferred from the module's routines.
| int AsyncBlock::InitRing | ( | unsigned int | size | ) |
Turn a buffer into a ring buffer of one empty block.
| size | Buffer size, at least two headers. |
| int AsyncBlock::MeasureFree | ( | unsigned int | size, |
| unsigned int * | free ) |
Measure the empty blocks that start here.
| size | Bytes from this block to the end of the ring buffer. |
| free | Receives the byte count of the empty blocks, headers included. |
|
static |
The block that starts a byte offset into a ring buffer.
| ring | Ring buffer. |
| offset | Byte offset of the block. |
|
staticconstexpr |
Size of the header, and the granularity of the ring buffer.
| int AsyncBlock::mUsed |
1 while the block stores a datagram.
| int AsyncBlock::mPadding |
1 when the block only fills the end of the ring buffer.
| unsigned int AsyncBlock::mCapacity |
Bytes after the header that belong to the block.
| unsigned int AsyncBlock::mLength |
Length of the datagram.
| sceInetAddress AsyncBlock::mAddress |
Remote address of the datagram.
| int AsyncBlock::mPort |
Remote port of the datagram.
| int AsyncBlock::mFlags |
Flags of the transfer.
| int AsyncBlock::mResult |
Result of sending the datagram.
| AsyncBlock* AsyncBlock::mSelf |
Address of the block in the memory of the side that filled it.
| unsigned int AsyncBlock::mReserved[3] |
| int AsyncBlock::mValid |
1 when the datagram is complete.
| unsigned char AsyncBlock::mData[] |
The datagram.