Encodes a positive Long to a minimum-size unsigned byte array, omitting the leading zero
the number of bytes written
if number is negative