class BooleanArrayAdapter extends TypeAdapter<boolean[]> {

  @Override
  public boolean[] deserialize(byte[] array, int pos) {
    int cursor = pos;
    int length = Serialization.readInt(array, cursor);
    cursor += Serialization.SIZE_OF_INT;
    boolean[] booleanArray = new boolean[length];
    for (int i = 0; i < length; i++) {
      boolean bool = Serialization.readBoolean(array, cursor);
      booleanArray[i] = bool;
      cursor += Serialization.SIZE_OF_BOOL;
    }
    return booleanArray;
  }

  public  BooleanArrayAdapter();

}