Commit e20e1b55 authored by Shubham Ajmera's avatar Shubham Ajmera
Browse files

Modify getters/setters of ByteBufferAs*Buffers

Added a different set of methods in DirectByteBuffer and HeapByteBuffer
to handle request from the ByteBufferAs*Buffers. The getters and setters
in ByteBufferAs*Buffer check limits instead of getters and setters of
Heap/DirectByteBuffer, therefore it becomes easier to maintain
local properties.

The change avoids making an extra copy of Heap/DirectByteBuffer at
the time of initialization.

Bug: 26020981
Bug: 6085292
Change-Id: I8af6ab60ec00b3eb9564d2fafad14bef6e61c15f
parent 92b0cae1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment