test_class.file: api/src/test/java/edu/wpi/first/shuffleboard/api/sources/recording/serialization/NumberArrayAdapterTest.java
test_class.identifier: NumberArrayAdapterTest
test_class.superclass: extends AbstractAdapterTest<double[]>
test_case.body: @Test
    public void testEncodeEmpty() {
      double[] array = {};
      byte[] expected = {0, 0, 0, 0};
      assertArrayEquals(expected, adapter.serialize(array));
    }
test_case.class_method_signature: NumberArrayAdapterTest.testEncodeEmpty()
test_case.full_signature: @Test public void testEncodeEmpty()
test_case.identifier: testEncodeEmpty
test_case.invocations: assertArrayEquals serialize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncodeEmpty()
focal_class.file: api/src/main/java/edu/wpi/first/shuffleboard/api/sources/recording/serialization/NumberArrayAdapter.java
focal_class.identifier: NumberArrayAdapter
focal_class.class_method_signature: NumberArrayAdapter.NumberArrayAdapter()
focal_class.full_signature: public  NumberArrayAdapter()
focal_class.identifier: NumberArrayAdapter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  NumberArrayAdapter()
focal_class.class_method_signature: NumberArrayAdapter.serialize(double[] array)
focal_class.full_signature: @Override public byte[] serialize(double[] array)
focal_class.identifier: serialize
focal_class.modifiers: @Override public
focal_class.parameters: (double[] array)
focal_class.return: byte[]
focal_class.signature: byte[] serialize(double[] array)
focal_class.class_method_signature: NumberArrayAdapter.deserialize(byte[] buffer, int bufferPosition)
focal_class.full_signature: @Override public double[] deserialize(byte[] buffer, int bufferPosition)
focal_class.identifier: deserialize
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] buffer, int bufferPosition)
focal_class.return: double[]
focal_class.signature: double[] deserialize(byte[] buffer, int bufferPosition)
focal_class.class_method_signature: NumberArrayAdapter.getSerializedSize(double[] value)
focal_class.full_signature: @Override public int getSerializedSize(double[] value)
focal_class.identifier: getSerializedSize
focal_class.modifiers: @Override public
focal_class.parameters: (double[] value)
focal_class.return: int
focal_class.signature: int getSerializedSize(double[] value)
focal_class.superclass: extends TypeAdapter<double[]>
focal_method.body: @Override
    public byte[] serialize(double[] 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 (double val : array) {
        byte[] arr = Serialization.toByteArray(val);
        Serialization.put(buf, arr, pos);
        pos += Serialization.SIZE_OF_DOUBLE;
      }
      return buf;
    }
focal_method.class_method_signature: NumberArrayAdapter.serialize(double[] array)
focal_method.full_signature: @Override public byte[] serialize(double[] array)
focal_method.identifier: serialize
focal_method.invocations: getSerializedSize put toByteArray toByteArray put
focal_method.modifiers: @Override public
focal_method.parameters: (double[] array)
focal_method.return: byte[]
focal_method.signature: byte[] serialize(double[] array)