Switch Dex from byte[] to ByteBuffer for backing store.

The ByteBuffer allows Dex to share the mapped data with
Class.getDex().

This also changes Dex.Section to use a ByteBuffer; that
ByteBuffer's position and limit are used instead of a
separate pair of integers.

Change-Id: I2b8042a493f70213c30e5c26e0bacfb03daebf55
(cherry picked from commit 59653899ed7cbca17f5a3dd32a23e81b3c4a5339)
1 file changed