public int size() {
    return bytes.size();
  }
Gets the size of the bytecode array, per se.

@return {@code >= 0;} the length of the bytecode array
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/BytecodeArray.java