module Protocol::HTTP2::Padded
def pack(data, padding_size: nil, maximum_size: nil)
def pack(data, padding_size: nil, maximum_size: nil) if padding_size set_flags(PADDED) buffer = String.new.b buffer << padding_size buffer << data if padding_size buffer << ("\0" * padding_size) end super buffer else clear_flags(PADDED) super data end end