This is just part of the data format. It's nonstandard and unique to ADB, so it needs to be hand-rolled. That's the index where the most-significant byte of the BigInteger needs to go in the output buffer. I've added a comment.