lib/ofpbuf.c
/* Ensures that 'b' has room for at least 'size' bytes at its head,
 * reallocating and copying its data if necessary.  Its tailroom, if any, is
 * preserved. */
Ensures that 'b' has room for at least 'size' bytes at its head,
reallocating and copying its data if necessary.  Its tailroom, if any, is
preserved.
Ensures that ' b ' has room for at least ' size ' bytes at its head reallocating and copying its data if necessary . Its tailroom if any is preserved .
void
ofpbuf_prealloc_headroom(struct ofpbuf *b, size_t size)
{
    if (size > ofpbuf_headroom(b)) {
        ofpbuf_resize__(b, MAX(size, 64), ofpbuf_tailroom(b));
    }
}
void ofpbuf_prealloc_headroom ( struct ofpbuf * b , size_t size ) { if ( size > ofpbuf_headroom ( b ) ) { ofpbuf_resize__ ( b , MAX ( size , 64 ) , ofpbuf_tailroom ( b ) ) ; } }
Ensures that 'b' has room for at least 'size' bytes at its head,
 reallocating and copying its data if necessary.
Ensures that ' b ' has room for at least ' size ' bytes at its head reallocating and copying its data if necessary .