code: private int encodedSize() {
      int ans =
        16 /* for accessSchemaID, indices.length, varBias, setCases.length,
                            and getCases.length */
        + 2*indices.length; // for the elements in indices
      for (int i = 0; i < setCases.length; i++) {
        int[] cases = setCases[i];
        ans += 2; // for cases.length or null indicator
        if (cases != null)
          ans += 2 * cases.length;
      }
      for (int i = 0; i < getCases.length; i++) {
        int[] cases = getCases[i];
        ans += 2; // for cases.length or null indicator
        if (cases != null)
          ans += 2 * cases.length;
      }
      return ans;
    }
docs: Find the number of bytes it takes to encode this CompatibilityMap