# Uses of Class org.lwjgl.util.mapped.MappedObject (LWJGL API)
Date: 2015-07-28

## Uses of Class
org.lwjgl.util.mapped.MappedObject

Packages that use MappedObject
org.lwjgl.util.mapped

Uses of MappedObject in org.lwjgl.util.mapped

Methods in org.lwjgl.util.mapped with type parameters of type MappedObject

`

`<T extends MappedObject> T[]`

`

`MappedObject.asArray()`

`

`<T extends MappedObject> void`

`

`MappedObject.copyRange(T target, int instances)`
Copies and amount of `SIZEOF * instances` bytes, from the current mapped object, to the specified mapped object.

`

`<T extends MappedObject> void`

`

`MappedObject.copyTo(T target)`
Copies and amount of `SIZEOF - padding` bytes, from the current mapped object, to the specified mapped object.

`

`<T extends MappedObject> T`

`

`MappedObject.dup()`
Creates an identical new MappedObject instance, comparable to the contract of `ByteBuffer.duplicate()`.

`static

`<T extends MappedObject> java.lang.Iterable<T>`

`

`MappedObject.foreach(T mapped)`
Creates an `Iterable` <MappedObject> that will step through `capacity()` views, leaving the `view` at the last valid value.

For convenience you are encouraged to static-import this specific method: `import static org.lwjgl.util.mapped.MappedObject.foreach;`

`static

`<T extends MappedObject> java.lang.Iterable<T>`

`

`MappedObject.foreach(T mapped, int elementCount)`
Creates an `Iterable` <MappedObject> that will step through `elementCount` views, leaving the `view` at the last valid value.

For convenience you are encouraged to static-import this specific method: `import static org.lwjgl.util.mapped.MappedObject.foreach;`

`static

`<T extends MappedObject> T`

`

`MappedObject.malloc(int elementCount)`
Creates a MappedObject instance, mapping the memory region of an allocated direct ByteBuffer with a capacity of `elementCount*SIZEOF`

The behavior of this (transformed) method does not follow the normal Java behavior.
`Vec2.malloc(int)` will return a mapped Vec2 instance.
`Vec3.malloc(int)` will return a mapped Vec3 instance.
This (required) notation might cause compiler warnings, which can be suppressed with @SuppressWarnings("static-access").
Using Java 5.0's static-import on this method will break functionality.

`static

`<T extends MappedObject> T`

`

`MappedObject.map(java.nio.ByteBuffer bb)`
Creates a MappedObject instance, mapping the memory region of the specified direct ByteBuffer.

`static

`<T extends MappedObject> T`

`

`MappedObject.map(long address, int capacity)`
Creates a MappedObject instance, mapping the memory region specified.

`

`<T extends MappedObject> T`

`

`MappedObject.slice()`
Creates a new MappedObject instance, with a base offset equal to the offset of the current view, comparable to the contract of `ByteBuffer.slice()`.

Methods in org.lwjgl.util.mapped that return MappedObject

`

`<T extends MappedObject> T[]`

`

`MappedObject.asArray()`

`static MappedObject` `MappedHelper.dup(MappedObject src, MappedObject dst)`
`static MappedObject` `MappedHelper.slice(MappedObject src, MappedObject dst)`

Methods in org.lwjgl.util.mapped with parameters of type MappedObject
`static long` `MappedHelper.aget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.aput(MappedObject mapped, long value, int fieldOffset)`
`static byte` `MappedHelper.bget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.bput(MappedObject mapped, byte value, int fieldOffset)`
`static byte` `MappedHelper.bvget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.bvput(MappedObject mapped, byte value, int fieldOffset)`
`static char` `MappedHelper.cget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.checkAddress(long viewAddress, MappedObject mapped)`
`static void` `MappedHelper.copy(MappedObject src, MappedObject dst, int bytes)`
`static void` `MappedHelper.cput(MappedObject mapped, char value, int fieldOffset)`
`static MappedSet2` `MappedSet.create(MappedObject a, MappedObject b)` Creates a `MappedSet` by linking the specified `MappedObject`s.
`static MappedSet3` `MappedSet.create(MappedObject a, MappedObject b, MappedObject c)` Creates a `MappedSet` by linking the specified `MappedObject`s.
`static MappedSet4` `MappedSet.create(MappedObject a, MappedObject b, MappedObject c, MappedObject d)` Creates a `MappedSet` by linking the specified `MappedObject`s.
`static char` `MappedHelper.cvget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.cvput(MappedObject mapped, char value, int fieldOffset)`
`static double` `MappedHelper.dget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.dput(MappedObject mapped, double value, int fieldOffset)`
`static MappedObject` `MappedHelper.dup(MappedObject src, MappedObject dst)`
`static double` `MappedHelper.dvget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.dvput(MappedObject mapped, double value, int fieldOffset)`
`static float` `MappedHelper.fget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.fput(MappedObject mapped, float value, int fieldOffset)`
`static float` `MappedHelper.fvget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.fvput(MappedObject mapped, float value, int fieldOffset)`
`static int` `MappedHelper.get_view_shift(MappedObject mapped, int sizeof_shift)`
`static int` `MappedHelper.get_view(MappedObject mapped, int sizeof)`
`static int` `MappedHelper.iget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.iput(MappedObject mapped, int value, int fieldOffset)`
`static int` `MappedHelper.ivget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.ivput(MappedObject mapped, int value, int fieldOffset)`
`static long` `MappedHelper.jget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.jput(MappedObject mapped, long value, int fieldOffset)`
`static long` `MappedHelper.jvget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.jvput(MappedObject mapped, long value, int fieldOffset)`
`static void` `MappedHelper.put_view_next(MappedObject mapped, int sizeof)`
`static void` `MappedHelper.put_view_shift(MappedObject mapped, int view, int sizeof_shift)`
`static void` `MappedHelper.put_view(MappedObject mapped, int view, int sizeof)`
`static void` `MappedHelper.setup(MappedObject mo, java.nio.ByteBuffer buffer, int align, int sizeof)`
`static short` `MappedHelper.sget(MappedObject mapped, int fieldOffset)`
`static MappedObject` `MappedHelper.slice(MappedObject src, MappedObject dst)`
`static void` `MappedHelper.sput(MappedObject mapped, short value, int fieldOffset)`
`static short` `MappedHelper.svget(MappedObject mapped, int fieldOffset)`
`static void` `MappedHelper.svput(MappedObject mapped, short value, int fieldOffset)`

Method parameters in org.lwjgl.util.mapped with type arguments of type MappedObject
`static void` `MappedObjectTransformer.register(java.lang.Class<? extends MappedObject> type)` Registers a class as a mapped object.

Copyright © 2002-2009 lwjgl.org. All Rights Reserved.