Modify get|putArray methods in ByteBufferAs*Buffers

This will improve the performance of ByteBufferAs*Buffers. The past
implemention was making independent get and set calls for each element
of the array which resulted in the poor performance. The new
implementation uses Memory methods to handle the requests.

Change-Id: I6ee75a168946634164f85017d5fec25c47577dc6
10 files changed