safeDecodeSignedInteger

Reads dataSize number of bytes from the array's current position, and then increments the position. Returns the signed value encoded as Long. If there are not enough bytes in the array, it assumes that the remaining length is padded with zeroes.