public final class ArrayMeasurementUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
computeArraySize(int arrayBaseOffset,
int length,
int elementSize,
int objectAlignment)
Computes the size of an array from its base offset, length, elementSize and object alignment.
|
public static long computeArraySize(int arrayBaseOffset,
int length,
int elementSize,
int objectAlignment)
arrayBaseOffset - the array base offsetlength - the array lengthelementSize - the size of the array elementsobjectAlignment - the object alignment (padding) in bytesCopyright © 2023. All rights reserved.