read-header ( -- name type auth flags #data #resource )


Vocabulary
binhex.private

Inputs
None

Outputs
namean object
typean object
authan object
flagsan object
#dataan object
#resourcean object


Definition


:: read-header ( -- name type auth flags #data #resource )
read1 :> n n 19 + read n prefix
check-crc :> header 1 dup n + header subseq utf8 decode
n 2 + dup 4 + header subseq be> n 6 + dup 4 + header subseq
be> n 10 + dup 2 + header subseq be> n 12 + dup 4 +
header subseq be> n 16 + dup 4 + header subseq be> ;