Copies bytes from this hash code into dest. @param dest the byte array into which the hash code will be written @param offset the start offset in the data @param maxLength the maximum number of bytes to write @return the number of bytes written to dest @throws IndexOutOfBoundsExcept
(byte[] dest, int offset, int maxLength)
| 97 | */ |
| 98 | |
| 99 | @CanIgnoreReturnValue |
| 100 | public int writeBytesTo(byte[] dest, int offset, int maxLength) { |
| 101 | maxLength = Ints.min(maxLength, bits() / 8); |
| 102 | Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length); |
| 103 | writeBytesToImpl(dest, offset, maxLength); |
| 104 | return maxLength; |
| 105 | } |
| 106 | |
| 107 | abstract void writeBytesToImpl(byte[] dest, int offset, int maxLength); |
| 108 |
no test coverage detected