< prev index next >

src/java.base/share/classes/jdk/internal/foreign/abi/Storage.java

Print this page

        

*** 24,38 **** --- 24,44 ---- public class Storage { private final StorageClass storageClass; private final long storageIndex; private final long size; + private final long maxSize; public Storage(StorageClass storageClass, long storageIndex, long size) { + this(storageClass, storageIndex, size, size); + } + + public Storage(StorageClass storageClass, long storageIndex, long size, long maxSize) { this.storageClass = storageClass; this.storageIndex = storageIndex; this.size = size; + this.maxSize = maxSize; } public StorageClass getStorageClass() { return storageClass; }
*** 43,52 **** --- 49,62 ---- public long getSize() { return size; } + public long getMaxSize() { + return maxSize; + } + @Override public String toString() { return "Storage { " + storageClass + "[" + storageIndex + "] (size=" + size + ") }"; } }
< prev index next >