version 1.8.2.1, 2014/02/11 13:25:08
|
version 1.8.2.3, 2014/02/12 09:29:15
|
Line 61 typedef struct tagRawPacket {
|
Line 61 typedef struct tagRawPacket {
|
(x)->r_next = (x)->r_buf; \ |
(x)->r_next = (x)->r_buf; \ |
} while (0) |
} while (0) |
#define RPACK_SANITY(x) ((x) && (x)->r_buf && (x)->r_next && (x)->r_next >= (x)->r_buf) |
#define RPACK_SANITY(x) ((x) && (x)->r_buf && (x)->r_next && (x)->r_next >= (x)->r_buf) |
|
#define RPACK_BUF(x) (assert((x)), (x)->r_buf) |
#define RPACK_LEN(x) (assert((x)), (x)->r_len) |
#define RPACK_LEN(x) (assert((x)), (x)->r_len) |
#define RPACK_REWIND(x) (assert((x)), (x)->r_next = (x)->r_buf) |
#define RPACK_REWIND(x) (assert((x)), (x)->r_next = (x)->r_buf) |
|
#define RPACK_OFF(x) (assert((x)), (x)->r_next - (x)->r_buf) |
|
|
#define RPACK_SET_16(x, n) do { assert((x)); \ |
#define RPACK_SET_16(x, n) do { assert((x)); \ |
*((uint8_t *) (x) + 1) = *((const uint8_t *) (n) + 1); \ |
*((uint8_t *) (x) + 1) = *((const uint8_t *) (n) + 1); \ |