MCPcopy Index your code
hub / github.com/antlr/codebuff / writeBytesTo

Method writeBytesTo

output/java_guava/1.4.17/HashCode.java:99–105  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

makeHashMethod · 0.95

Calls 4

minMethod · 0.95
bitsMethod · 0.95
checkPositionIndexesMethod · 0.95
writeBytesToImplMethod · 0.95

Tested by

no test coverage detected