MCPcopy Index your code
hub / github.com/apache/tomcat / toBytes

Method toBytes

java/org/apache/catalina/tribes/io/XByteBuffer.java:551–554  ·  view source on GitHub ↗

Converts a boolean and put it in a byte array. @param bool the integer @param data the byte buffer in which the boolean will be placed @param offset the offset in the byte array @return the byte array

(boolean bool, byte[] data, int offset)

Source from the content-addressed store, hash-verified

549 * @return the byte array
550 */
551 public static byte[] toBytes(boolean bool, byte[] data, int offset) {
552 data[offset] = (byte) (bool ? 1 : 0);
553 return data;
554 }
555
556 /**
557 * Converts a byte array entry to boolean.

Callers 10

createRandomDataMethod · 0.95
createRandomDataMethod · 0.95
getDataMethod · 0.95
appendMethod · 0.95
createDataPackageMethod · 0.95
getDataPackageMethod · 0.95
sendMessageMethod · 0.95
writeMethod · 0.45
appendBytesMethod · 0.45
parsePathParametersMethod · 0.45

Calls

no outgoing calls

Tested by 2

createRandomDataMethod · 0.76
createRandomDataMethod · 0.76