Handbook
Glossary
decode-field ( decode-context block index -- updated-context block new-index field/f )
Vocabulary
http2
.
hpack
.
private
Inputs
decode-context
an
object
block
an
object
index
an
object
Outputs
updated-context
an
object
block
an
object
new-index
an
object
field/f
an
object
Definition
USING:
combinators
kernel
math
sequences
;
IN:
http2.hpack.private
::
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
;