Interface PlatformMemory
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
PlatformAbstractMemory,PlatformExternalMemory,PlatformPooledMemory,PlatformUnpooledMemory
public interface PlatformMemory extends AutoCloseable
Interop memory chunk.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcapacity()Gets capacity.voidclose()Close memory releasing it.longdata()Gets data pointer.PlatformInputStreaminput()Gets input stream.intlength()Gets length.PlatformOutputStreamoutput()Gets output stream.longpointer()Gets pointer which can be passed between platforms.voidreallocate(int cap)Reallocate memory chunk.
-
-
-
Method Detail
-
input
PlatformInputStream input()
Gets input stream.- Returns:
- Input stream.
-
output
PlatformOutputStream output()
Gets output stream.- Returns:
- Output stream.
-
pointer
long pointer()
Gets pointer which can be passed between platforms.- Returns:
- Pointer.
-
data
long data()
Gets data pointer.- Returns:
- Data pointer.
-
capacity
int capacity()
Gets capacity.- Returns:
- Capacity.
-
length
int length()
Gets length.- Returns:
- Length.
-
reallocate
void reallocate(int cap)
Reallocate memory chunk.- Parameters:
cap- Minimum capacity.
-
close
void close()
Close memory releasing it.- Specified by:
closein interfaceAutoCloseable
-
-