Added *_bound functions to be used for buffer size calculation