public interface MemoryManager extends Runtime
jDTAUS Core SPI MemoryManager
specification to be used by
implementations when allocating memory.
Container
Modifier and Type | Method and Description |
---|---|
boolean[] |
allocateBoolean(int requested)
Creates a new buffer of boolean values.
|
byte[] |
allocateBytes(int requested)
Creates a new buffer of byte values.
|
char[] |
allocateChars(int requested)
Creates a new buffer of char values.
|
double[] |
allocateDoubles(int requested)
Creates a new buffer of double values.
|
float[] |
allocateFloats(int requested)
Creates a new buffer of float values.
|
int[] |
allocateIntegers(int requested)
Creates a new buffer of integer values.
|
long[] |
allocateLongs(int requested)
Creates a new buffer of long values.
|
short[] |
allocateShorts(int requested)
Creates a new buffer of short values.
|
getAllocatedPercent, getAvailableBooleans, getAvailableBytes, getAvailableChars, getAvailableDoubles, getAvailableFloats, getAvailableIntegers, getAvailableLongs, getAvailableShorts
byte[] allocateBytes(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.short[] allocateShorts(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.int[] allocateIntegers(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.long[] allocateLongs(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.char[] allocateChars(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.float[] allocateFloats(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.double[] allocateDoubles(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.boolean[] allocateBoolean(int requested)
requested
- desired size of the buffer.requested
.IllegalArgumentException
- if requested
is negative.OutOfMemoryError
- if there is not enough memory available.Copyright © 2005-2012 jDTAUS. All Rights Reserved.