Refactored buffer for hpack