Handbook
Glossary
message>byte-array ( message -- byte-array )
Vocabulary
dns
Inputs
message
an
object
Outputs
byte-array
an
object
Definition
USING:
accessors
combinators
combinators.smart
endian
sequences
;
IN:
dns
:
message>byte-array
( message -- byte-array )
[
{
[
id>>
2
>be
]
[
message>header
2
>be
]
[
query>>
length
2
>be
]
[
answer-section>>
length
2
>be
]
[
authority-section>>
length
2
>be
]
[
additional-section>>
length
2
>be
]
[
query>>
[
query>byte-array
]
map
concat
]
[
answer-section>>
[
rr>byte-array
]
map
concat
]
[
authority-section>>
[
rr>byte-array
]
map
concat
]
[
additional-section>>
[
rr>byte-array
]
map
concat
]
}
cleave
]
B{
}
append-outputs-as
;