decode-field ( decode-context block index -- updated-context block new-index field/f )


Vocabulary
http2.hpack.private

Inputs
decode-contextan object
blockan object
indexan object


Outputs
updated-contextan object
blockan object
new-indexan object
field/fan object


Definition


:: decode-field
( decode-context block index -- updated-context block new-index field/f )
decode-context block index {
{
[ index block nth 7 bit? ]
[
7 decode-integer decode-context swap
get-header-from-table
]
}
{
[ index block nth 6 bit? ]
[
6 decode-literal-header
[ 2nip add-header-to-table ] 3keep
]
}
{
[ index block nth 5 bit? ]
[
5 decode-integer -rot f
[ set-dynamic-table-size ] 3dip
]
}
[ 4 decode-literal-header ]
} cond ;