00
If the number passed is less than 128, then this is a one byte sequence - return the value; otherwise, it's the last byte of a multi-byte sequence, and you add the 6 least significant bits to 0x80.