#include <alignedbuf.h>
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 |
unsigned RDD_ALIGNEDBUF::align |
Definition at line 53 of file alignedbuf.h.
unsigned char* RDD_ALIGNEDBUF::aligned |
Definition at line 51 of file alignedbuf.h.
unsigned RDD_ALIGNEDBUF::asize |
Definition at line 52 of file alignedbuf.h.
unsigned char* RDD_ALIGNEDBUF::unaligned |
Definition at line 50 of file alignedbuf.h.