public interface MemorySizeProperties
| Modifier and Type | Interface and Description |
|---|---|
static class |
MemorySizeProperties.Unsupported
Default implementation that returns
-1 for every method. |
| Modifier and Type | Method and Description |
|---|---|
long |
byteSizeArray_boolean(long elementCount) |
long |
byteSizeArray_byte(long elementCount) |
long |
byteSizeArray_char(long elementCount) |
long |
byteSizeArray_double(long elementCount) |
long |
byteSizeArray_float(long elementCount) |
long |
byteSizeArray_int(long elementCount) |
long |
byteSizeArray_long(long elementCount) |
long |
byteSizeArray_short(long elementCount) |
long |
byteSizeArrayObject(long elementCount) |
int |
byteSizeFieldValue(Class<?> type) |
default int |
byteSizeFieldValue(Field field) |
int |
byteSizeInstance(Class<?> type) |
int |
byteSizeObjectHeader(Class<?> type) |
int |
byteSizeReference() |
int |
pageSize()
Returns the system's memory "page size" (whatever that may be exactely for a given system).
|
static MemorySizeProperties |
Unsupported() |
int pageSize()
int byteSizeReference()
int byteSizeInstance(Class<?> type)
int byteSizeObjectHeader(Class<?> type)
default int byteSizeFieldValue(Field field)
int byteSizeFieldValue(Class<?> type)
long byteSizeArray_byte(long elementCount)
long byteSizeArray_boolean(long elementCount)
long byteSizeArray_short(long elementCount)
long byteSizeArray_char(long elementCount)
long byteSizeArray_int(long elementCount)
long byteSizeArray_float(long elementCount)
long byteSizeArray_long(long elementCount)
long byteSizeArray_double(long elementCount)
long byteSizeArrayObject(long elementCount)
static MemorySizeProperties Unsupported()
Copyright © 2022 MicroStream Software. All rights reserved.