public interface RawMemoryRegionFactory
RawMemoryRegion
that is not already provided by the standard.
An instance of this interface can be registered with a
RawMemoryFactory
and provide the object that that factory
should return for with a given RawMemoryRegion
. It is
responsible for checking all requests and throwing the proper
exception when a request is invalid or the requester is not
authorized to make the request.Modifier and Type | Method and Description |
---|---|
RawByte |
createRawByte(long base,
int count,
int stride)
Creates an instance of a class that implements
RawByte and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawByteReader |
createRawByteReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawByteReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawByteWriter |
createRawByteWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawByteWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawDouble |
createRawDouble(long base,
int count,
int stride)
Creates an instance of a class that implements
RawDouble and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawDoubleReader |
createRawDoubleReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawDoubleReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawDoubleWriter |
createRawDoubleWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawDoubleWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawFloat |
createRawFloat(long base,
int count,
int stride)
Creates an instance of a class that implements
RawFloat and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawFloatReader |
createRawFloatReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawFloatReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawFloatWriter |
createRawFloatWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawFloatWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawInt |
createRawInt(long base,
int count,
int stride)
Creates an instance of a class that implements
RawInt and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawIntReader |
createRawIntReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawIntReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawIntWriter |
createRawIntWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawIntWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawLong |
createRawLong(long base,
int count,
int stride)
Creates an instance of a class that implements
RawLong and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawLongReader |
createRawLongReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawLongReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawLongWriter |
createRawLongWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawLongWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawShort |
createRawShort(long base,
int count,
int stride)
Creates an instance of a class that implements
RawShort and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawShortReader |
createRawShortReader(long base,
int count,
int stride)
Creates an instance of a class that implements
RawShortReader and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
RawShortWriter |
createRawShortWriter(long base,
int count,
int stride)
Creates an instance of a class that implements
RawShortWriter and
accesses memory of getRegion() in the address range described by
base , stride , and count . |
java.lang.String |
getName()
Determines the name of the region for which this factory creates raw memory objects.
|
RawMemoryRegion |
getRegion()
Determines for what region this factory creates raw memory objects.
|
RawMemoryRegion getRegion()
RawByte createRawByte(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawByte
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of byte ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawByte
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawByteReader createRawByteReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawByteReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of byte ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawByteReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawByteWriter createRawByteWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawByteWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of byte ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawByteWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawShort createRawShort(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawShort
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of short ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawShort
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawShortReader createRawShortReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawShortReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of short ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawShortReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawShortWriter createRawShortWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawShortWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of short ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawShortWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawInt createRawInt(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawInt
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of int ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawInt
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawIntReader createRawIntReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawIntReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of int ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawIntReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawIntWriter createRawIntWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawIntWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of int ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawIntWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawLong createRawLong(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawLong
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of long ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawLong
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawLongReader createRawLongReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawLongReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of long ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawLongReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawLongWriter createRawLongWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawLongWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of long ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawLongWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawFloat createRawFloat(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawFloat
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of float ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawFloat
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawFloatReader createRawFloatReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawFloatReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of float ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawFloatReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawFloatWriter createRawFloatWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawFloatWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of float ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawFloatWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawDouble createRawDouble(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawDouble
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of double ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawDouble
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawDoubleReader createRawDoubleReader(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawDoubleReader
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of double ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawDoubleReader
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.RawDoubleWriter createRawDoubleWriter(long base, int count, int stride) throws java.lang.SecurityException, java.lang.IllegalArgumentException, OffsetOutOfBoundsException, SizeOutOfBoundsException
RawDoubleWriter
and
accesses memory of getRegion()
in the address range described by
base
, stride
, and count
.
The actual extent of the memory addressed by the object is
stride
× size of double ×
count
. The object is allocated in the current memory area
of the calling thread.base
- The starting physical address accessible through the
returned instance.count
- The number of memory elements accessible through the
returned instance.stride
- The distance to the next element in mulitple of element
count, where a value of 1
means the elements
are adjacent in memory.RawDoubleWriter
and supports access to
the specified range in the memory region.java.lang.SecurityException
- when the caller does not have
permissions to access the given memory region or the
specified range of addresses.java.lang.IllegalArgumentException
- when base
is negative,
count
is not greater than zero, or
stride
is not greater than zero.OffsetOutOfBoundsException
- when base
is invalid.SizeOutOfBoundsException
- when the memory addressed by the object
would extend into an invalid range of memory.java.lang.String getName()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2022 aicas GmbH. All Rights Reserved.