#!/bin/sh # # Written by Dridi Boukelmoune # # This file is in the public domain. # # 4.1. Calculating Table Size # # The size of the dynamic table is the sum of the size of its entries. # # The size of an entry is the sum of its name's length in octets (as # defined in Section 5.2), its value's length in octets, and 32. # # The size of an entry is calculated using the length of its name and # value without any Huffman encoding applied. . "$(dirname "$0")"/common.sh _ ---------------- _ Size of an entry _ ---------------- # Let's do some high-level arithmetics here: # # - overhead: 32 octets # - field name: user-agent (10 octets) # - field value: software with dissociative identity disorder (44 octets) # - total: 86 octets mk_hex <