private void checkOffsets(int s, int e) {
    if ((s < 0) || (e < s) || (e > size)) {
      throw new IllegalArgumentException("bad range: " + s + ".." + e + "; actual size " + size);
    }
  }
Checks a range of offsets for validity, throwing if invalid.

@param s start offset (inclusive)
@param e end offset (exclusive)
android/android_framework/dex-maker/src/main/java/com/android/dx/util/ByteArray.java