test_class.file: core/src/test/java/dk/alexandra/fresco/framework/util/TestByteArrayHelper.java
test_class.identifier: TestByteArrayHelper
test_case.body: @Test
    public void testGetBit() {
      byte[] byteArray = new byte[] { (byte) 0x54, (byte) 0x04 };
      assertEquals(true, ByteArrayHelper.getBit(byteArray, 13));
      byteArray = new byte[] { (byte) 0xFF, (byte) 0xFB };
      assertEquals(false, ByteArrayHelper.getBit(byteArray, 13));
    }
test_case.class_method_signature: TestByteArrayHelper.testGetBit()
test_case.full_signature: @Test public void testGetBit()
test_case.identifier: testGetBit
test_case.invocations: assertEquals getBit assertEquals getBit
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBit()
focal_class.file: core/src/main/java/dk/alexandra/fresco/framework/util/ByteArrayHelper.java
focal_class.identifier: ByteArrayHelper
focal_class.class_method_signature: ByteArrayHelper.ByteArrayHelper()
focal_class.full_signature: private  ByteArrayHelper()
focal_class.identifier: ByteArrayHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ByteArrayHelper()
focal_class.class_method_signature: ByteArrayHelper.getBit(byte[] input, int index)
focal_class.full_signature: public static boolean getBit(byte[] input, int index)
focal_class.identifier: getBit
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, int index)
focal_class.return: boolean
focal_class.signature: boolean getBit(byte[] input, int index)
focal_class.class_method_signature: ByteArrayHelper.setBit(byte[] input, int index, boolean choice)
focal_class.full_signature: public static void setBit(byte[] input, int index, boolean choice)
focal_class.identifier: setBit
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, int index, boolean choice)
focal_class.return: void
focal_class.signature: void setBit(byte[] input, int index, boolean choice)
focal_class.class_method_signature: ByteArrayHelper.xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.full_signature: public static void xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.identifier: xor
focal_class.modifiers: public static
focal_class.parameters: (List<byte[]> vector1, List<byte[]> vector2)
focal_class.return: void
focal_class.signature: void xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.class_method_signature: ByteArrayHelper.xor(byte[] arr1, byte[] arr2)
focal_class.full_signature: public static void xor(byte[] arr1, byte[] arr2)
focal_class.identifier: xor
focal_class.modifiers: public static
focal_class.parameters: (byte[] arr1, byte[] arr2)
focal_class.return: void
focal_class.signature: void xor(byte[] arr1, byte[] arr2)
focal_class.class_method_signature: ByteArrayHelper.shiftArray(byte[] input, byte[] output, int positions)
focal_class.full_signature: public static void shiftArray(byte[] input, byte[] output, int positions)
focal_class.identifier: shiftArray
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, byte[] output, int positions)
focal_class.return: void
focal_class.signature: void shiftArray(byte[] input, byte[] output, int positions)
focal_method.body: public static boolean getBit(byte[] input, int index) {
      if (index < 0) {
        throw new IllegalAccessError("Bit index must not be negative.");
      }
      byte currentByte = (byte) (input[index / 8] >> (7 - (index % 8)));
      boolean choiceBit = false;
      if ((currentByte & 1) == 1) {
        choiceBit = true;
      }
      return choiceBit;
    }
focal_method.class_method_signature: ByteArrayHelper.getBit(byte[] input, int index)
focal_method.full_signature: public static boolean getBit(byte[] input, int index)
focal_method.identifier: getBit
focal_method.modifiers: public static
focal_method.parameters: (byte[] input, int index)
focal_method.return: boolean
focal_method.signature: boolean getBit(byte[] input, int index)