>>>
is a right shift without sign extension
If you use the >>
operator on a negative number, the result will also be negative because the original sign bit is copied into all of the new bits. With >>>
a zero will be copied in instead.
In this particular case it's just being used as a way to restrict the length
field to an unsigned 31 bit integer, or in other words to "cast" Javascript's native IEEE754 "double" number into an integer.