public class WrappedByteArraySizeCalculator<K,V> extends AbstractEntrySizeCalculatorHelper<K,V>
WrappedByteArray by adding its size and the underlying byte[].HEADER_AND_CLASS_REFERENCE, OBJECT_SIZE, POINTER_SIZE| Constructor and Description |
|---|
WrappedByteArraySizeCalculator(EntrySizeCalculator<?,?> chained) |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateSize(K key,
V value)
Method used to calculate how much memory in size the key and value use.
|
roundUpToNearest8public WrappedByteArraySizeCalculator(EntrySizeCalculator<?,?> chained)
public long calculateSize(K key, V value)
EntrySizeCalculatorkey - The key for this entry to be used in size calculationvalue - The value for this entry to be used in size calculationCopyright © 2022 JBoss by Red Hat. All rights reserved.