Remix.run Logo
willtemperley 4 days ago

I like to see comments for external information that can't be derived from the code or API documentation.

For example, for some reason padding bytes are allowed in variable length integers (LEB128) for reasons I still do not understand:

    // Allow padding bytes that do not affect the value
    let expectedBits: UInt8 = (result < 0) ? 0x7F : 0x00