class StringArrayAdapter extends TypeAdapter<String[]> {

  @Override
  public String[] deserialize(byte[] array, int pos) {
    int cursor = pos;
    int length = Serialization.readInt(array, cursor);
    cursor += Serialization.SIZE_OF_INT;
    String[] stringArray = new String[length];
    for (int i = 0; i < length; i++) {
      String string = Serialization.readString(array, cursor);
      stringArray[i] = string;
      cursor += Serialization.SIZE_OF_INT + Serialization.readInt(array, cursor);
    }
    return stringArray;
  }

  public  StringArrayAdapter();

}