Package org.github.jamm.utils
Class ByteBufferMeasurementUtils
java.lang.Object
org.github.jamm.utils.ByteBufferMeasurementUtils
Utility methods for
ByteBuffers
measurements.-
Method Summary
Modifier and TypeMethodDescriptionstatic int
underlyingCapacity
(ByteBuffer buffer, FieldAccessor accessor) Retrieves the underlying capacity of the specified buffer.
-
Method Details
-
underlyingCapacity
Retrieves the underlying capacity of the specified buffer.- Parameters:
buffer
- the bufferaccessor
- the field accessor for this java version- Returns:
- the underlying capacity of the specified buffer.
-