Header of one datagram in the ring buffer of an AsyncInfo.
Definition asyncblock.h:12
static AsyncBlock * At(unsigned char *ring, unsigned int offset)
The block that starts a byte offset into a ring buffer.
int mPort
Definition asyncblock.h:52
static constexpr unsigned int kHeaderSize
Size of the header, and the granularity of the ring buffer.
Definition asyncblock.h:15
unsigned int mLength
Definition asyncblock.h:50
int mPadding
Definition asyncblock.h:48
sceInetAddress mAddress
Definition asyncblock.h:51
int mFlags
Definition asyncblock.h:53
int mUsed
Definition asyncblock.h:47
unsigned int mCapacity
Definition asyncblock.h:49
unsigned char mData[]
Definition asyncblock.h:58
int mValid
Definition asyncblock.h:57
unsigned int mReserved[3]
Definition asyncblock.h:56
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.
AsyncBlock * mSelf
Definition asyncblock.h:55
int mResult
Definition asyncblock.h:54