lib/ofpbuf.c
/* Reserves 'size' bytes of headroom so that they can be later allocated with
 * ofpbuf_push_uninit() without reallocating the ofpbuf. */
Reserves 'size' bytes of headroom so that they can be later allocated with
ofpbuf_push_uninit() without reallocating the ofpbuf.
Reserves ' size ' bytes of headroom so that they can be later allocated with ofpbuf_push_uninit () without reallocating the ofpbuf .
void
ofpbuf_reserve(struct ofpbuf *b, size_t size)
{
    ovs_assert(!b->size);
    ofpbuf_prealloc_tailroom(b, size);
    b->data = (char*)b->data + size;
}
void ofpbuf_reserve ( struct ofpbuf * b , size_t size ) { ovs_assert ( ! b -> size ) ; ofpbuf_prealloc_tailroom ( b , size ) ; b -> data = ( char * ) b -> data + size ; }
Reserves 'size' bytes of headroom so that they can be later allocated with
 ofpbuf_push_uninit() without reallocating the ofpbuf.
Reserves ' size ' bytes of headroom so that they can be later allocated with ofpbuf_push_uninit () without reallocating the ofpbuf .