public byte[] getBytes() {
    ByteBuffer data = this.data.duplicate(); // positioned ByteBuffers aren't thread safe
    byte[] result = new byte[data.capacity()];
    data.position(0);
    data.get(result);
    return result;
  }
Returns a copy of the the bytes of this dex.
android/android_framework/dex-maker/src/main/java/com/android/dex/Dex.java