get_max_size


Description:

public virtual size_t get_max_size (Buffer input_meta)

This is used to know how much data a certain header extension will need for both allocating the resulting data, and deciding how much payload data can be generated.

Implementations should return as accurate a value as is possible using the information given in the input buffer.

Parameters:

this

a HeaderExtension

input_meta

a Buffer

Returns:

the maximum size of the data written by this extension