|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
38 #ifndef included_clib_random_buffer_h
39 #define included_clib_random_buffer_h
87 l =
b->n_cached_bytes;
91 return &
b->cached_bytes[l];
103 _vec_len (
b->buffer) =
i;
107 b->cached_word =
b->buffer[
i];
109 return b->cached_bytes;
112 return b->buffer +
i;
void clib_random_buffer_fill(clib_random_buffer_t *b, uword n_words)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static void clib_random_buffer_free(clib_random_buffer_t *b)
sll srl srl sll sra u16x4 i
static void * clib_random_buffer_get_data(clib_random_buffer_t *b, uword n_bytes)
#define vec_free(V)
Free vector's memory (no header).
void clib_random_buffer_init(clib_random_buffer_t *b, uword seed)