RDD_ALIGNEDBUF Struct Reference

#include <alignedbuf.h>


Detailed Description

Aligned-buffer descriptor.

RDD_ALIGNEDBUF contains two pointer members. Member unaligned contains a pointer to a buffer allocated with malloc(). Member aligned points to a location within the same buffer, but has been aligned to a user-specified byte count. The following equations should always hold:
(1) 0 <= aligned - unaligned < user_alignment ;
(2) (aligned % align) == 0.

Definition at line 49 of file alignedbuf.h.


Data Fields

unsigned align
unsigned char * aligned
unsigned asize
unsigned char * unaligned

Field Documentation

Definition at line 53 of file alignedbuf.h.

unsigned char* RDD_ALIGNEDBUF::aligned

Definition at line 51 of file alignedbuf.h.

Definition at line 52 of file alignedbuf.h.

unsigned char* RDD_ALIGNEDBUF::unaligned

Definition at line 50 of file alignedbuf.h.


The documentation for this struct was generated from the following file:

Generated on Sun Feb 6 12:36:46 2011 for rdd by  doxygen 1.5.6