Paste: stack effect error

Author: brennanc
Mode: factor
Date: Thu, 13 May 2010 21:18:34
Plain Text |
! read a 1 or 4 byte big endian int                             
: read-var-int ( -- n )
    1 read first dup 7 bit?
    [ 127 bitand 3 read swap suffix be> ]
    when ;

: read-name-value-pair ( -- name value )
    2 [ read-var-int ] times [ read ] bi@ ;

New Annotation

Summary:
Author:
Mode:
Body: