| Constructor and Description |
|---|
LocalSize(long size) |
| Modifier and Type | Method and Description |
|---|---|
static LocalSize |
ofArray(long arrayLength,
Type componentType)
Returns the size in bytes of an array of T values of the specified length.
|
static LocalSize |
ofByteArray(long arrayLength)
Returns the size in bytes of an array of byte values of the specified length.
|
static LocalSize |
ofCharArray(long arrayLength)
Returns the size in bytes of an array of char values of the specified length.
|
static LocalSize |
ofDoubleArray(long arrayLength)
Returns the size in bytes of an array of double values of the specified length.
|
static LocalSize |
ofFloatArray(long arrayLength)
Returns the size in bytes of an array of float values of the specified length.
|
static LocalSize |
ofIntArray(long arrayLength)
Returns the size in bytes of an array of int values of the specified length.
|
static LocalSize |
ofLongArray(long arrayLength)
Returns the size in bytes of an array of long values of the specified length.
|
static LocalSize |
ofShortArray(long arrayLength)
Returns the size in bytes of an array of short values of the specified length.
|
public LocalSize(long size)
public static LocalSize ofIntArray(long arrayLength)
arrayLength * sizeof(int) = arrayLength * 4public static LocalSize ofLongArray(long arrayLength)
arrayLength * sizeof(long) = arrayLength * 8public static LocalSize ofShortArray(long arrayLength)
arrayLength * sizeof(short) = arrayLength * 2public static LocalSize ofByteArray(long arrayLength)
arrayLength * sizeof(byte) = arrayLength * 1public static LocalSize ofCharArray(long arrayLength)
arrayLength * sizeof(char) = arrayLength * 2public static LocalSize ofFloatArray(long arrayLength)
arrayLength * sizeof(float) = arrayLength * 4public static LocalSize ofDoubleArray(long arrayLength)
arrayLength * sizeof(double) = arrayLength * 8Copyright © 2009-2015. All Rights Reserved.