Overridden allocate() to support direct buffers.
This commit is contained in:
parent
b4e45d1bb7
commit
4bb0a30839
|
@ -68,4 +68,10 @@ public class ByteBufferDataInfo extends DataInfo
|
|||
}
|
||||
return space;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ByteBuffer allocate(int size)
|
||||
{
|
||||
return buffer.isDirect() ? ByteBuffer.allocateDirect(size) : super.allocate(size);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue