test_class.file: api/src/test/java/edu/wpi/first/shuffleboard/api/sources/recording/serialization/BooleanArrayAdapterTest.java
test_class.identifier: BooleanArrayAdapterTest
test_class.superclass: extends AbstractAdapterTest<boolean[]>
test_case.body: @Test
    public void testEncode() {
      final boolean[] array = {true, false, true, false};
      final byte[] expected = {
          0, 0, 0, 4,
          1, 0, 1, 0
      };
      final byte[] serialized = adapter.serialize(array);
      assertArrayEquals(expected, serialized);
    }
test_case.class_method_signature: BooleanArrayAdapterTest.testEncode()
test_case.full_signature: @Test public void testEncode()
test_case.identifier: testEncode
test_case.invocations: serialize assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncode()
focal_class.file: api/src/main/java/edu/wpi/first/shuffleboard/api/sources/recording/serialization/BooleanArrayAdapter.java
focal_class.identifier: BooleanArrayAdapter
focal_class.class_method_signature: BooleanArrayAdapter.BooleanArrayAdapter()
focal_class.full_signature: public  BooleanArrayAdapter()
focal_class.identifier: BooleanArrayAdapter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  BooleanArrayAdapter()
focal_class.class_method_signature: BooleanArrayAdapter.serialize(boolean[] array)
focal_class.full_signature: @Override public byte[] serialize(boolean[] array)
focal_class.identifier: serialize
focal_class.modifiers: @Override public
focal_class.parameters: (boolean[] array)
focal_class.return: byte[]
focal_class.signature: byte[] serialize(boolean[] array)
focal_class.class_method_signature: BooleanArrayAdapter.deserialize(byte[] array, int pos)
focal_class.full_signature: @Override public boolean[] deserialize(byte[] array, int pos)
focal_class.identifier: deserialize
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] array, int pos)
focal_class.return: boolean[]
focal_class.signature: boolean[] deserialize(byte[] array, int pos)
focal_class.class_method_signature: BooleanArrayAdapter.getSerializedSize(boolean[] value)
focal_class.full_signature: @Override public int getSerializedSize(boolean[] value)
focal_class.identifier: getSerializedSize
focal_class.modifiers: @Override public
focal_class.parameters: (boolean[] value)
focal_class.return: int
focal_class.signature: int getSerializedSize(boolean[] value)
focal_class.superclass: extends TypeAdapter<boolean[]>
focal_method.body: @Override
    public byte[] serialize(boolean[] array) {
      final byte[] buf = new byte[getSerializedSize(array)];
      if (array.length == 0) {
        return buf;
      }
      int pos = 0;
      Serialization.put(buf, Serialization.toByteArray(array.length), pos);
      pos += Serialization.SIZE_OF_INT;
  
      for (boolean val : array) {
        byte[] arr = Serialization.toByteArray(val);
        Serialization.put(buf, arr, pos);
        pos += Serialization.SIZE_OF_BOOL;
      }
      return buf;
    }
focal_method.class_method_signature: BooleanArrayAdapter.serialize(boolean[] array)
focal_method.full_signature: @Override public byte[] serialize(boolean[] array)
focal_method.identifier: serialize
focal_method.invocations: getSerializedSize put toByteArray toByteArray put
focal_method.modifiers: @Override public
focal_method.parameters: (boolean[] array)
focal_method.return: byte[]
focal_method.signature: byte[] serialize(boolean[] array)