public final class MemoryUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decodeASCII(java.nio.ByteBuffer buffer) |
static java.lang.String |
decodeUTF16(java.nio.ByteBuffer buffer) |
static java.lang.String |
decodeUTF8(java.nio.ByteBuffer buffer) |
static java.nio.ByteBuffer |
encodeASCII(java.lang.CharSequence text)
Returns a ByteBuffer containing the specified text ASCII encoded and null-terminated.
|
static java.nio.ByteBuffer |
encodeUTF16(java.lang.CharSequence text)
Returns a ByteBuffer containing the specified text UTF-16LE encoded and null-terminated.
|
static java.nio.ByteBuffer |
encodeUTF8(java.lang.CharSequence text)
Returns a ByteBuffer containing the specified text UTF-8 encoded and null-terminated.
|
static long |
getAddress(java.nio.ByteBuffer buffer) |
static long |
getAddress(java.nio.ByteBuffer buffer,
int position) |
static long |
getAddress(java.nio.CharBuffer buffer) |
static long |
getAddress(java.nio.CharBuffer buffer,
int position) |
static long |
getAddress(java.nio.DoubleBuffer buffer) |
static long |
getAddress(java.nio.DoubleBuffer buffer,
int position) |
static long |
getAddress(java.nio.FloatBuffer buffer) |
static long |
getAddress(java.nio.FloatBuffer buffer,
int position) |
static long |
getAddress(java.nio.IntBuffer buffer) |
static long |
getAddress(java.nio.IntBuffer buffer,
int position) |
static long |
getAddress(java.nio.LongBuffer buffer) |
static long |
getAddress(java.nio.LongBuffer buffer,
int position) |
static long |
getAddress(PointerBuffer buffer) |
static long |
getAddress(PointerBuffer buffer,
int position) |
static long |
getAddress(java.nio.ShortBuffer buffer) |
static long |
getAddress(java.nio.ShortBuffer buffer,
int position) |
static long |
getAddress0(java.nio.Buffer buffer)
Returns the memory address of the specified buffer.
|
static long |
getAddress0(PointerBuffer buffer) |
static long |
getAddress0Safe(java.nio.Buffer buffer) |
static long |
getAddress0Safe(PointerBuffer buffer) |
static long |
getAddressSafe(java.nio.ByteBuffer buffer) |
static long |
getAddressSafe(java.nio.ByteBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.CharBuffer buffer) |
static long |
getAddressSafe(java.nio.CharBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.DoubleBuffer buffer) |
static long |
getAddressSafe(java.nio.DoubleBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.FloatBuffer buffer) |
static long |
getAddressSafe(java.nio.FloatBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.IntBuffer buffer) |
static long |
getAddressSafe(java.nio.IntBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.LongBuffer buffer) |
static long |
getAddressSafe(java.nio.LongBuffer buffer,
int position) |
static long |
getAddressSafe(PointerBuffer buffer) |
static long |
getAddressSafe(PointerBuffer buffer,
int position) |
static long |
getAddressSafe(java.nio.ShortBuffer buffer) |
static long |
getAddressSafe(java.nio.ShortBuffer buffer,
int position) |
public static long getAddress0(java.nio.Buffer buffer)
buffer
- the bufferpublic static long getAddress0Safe(java.nio.Buffer buffer)
public static long getAddress0(PointerBuffer buffer)
public static long getAddress0Safe(PointerBuffer buffer)
public static long getAddress(java.nio.ByteBuffer buffer)
public static long getAddress(java.nio.ByteBuffer buffer, int position)
public static long getAddress(java.nio.ShortBuffer buffer)
public static long getAddress(java.nio.ShortBuffer buffer, int position)
public static long getAddress(java.nio.CharBuffer buffer)
public static long getAddress(java.nio.CharBuffer buffer, int position)
public static long getAddress(java.nio.IntBuffer buffer)
public static long getAddress(java.nio.IntBuffer buffer, int position)
public static long getAddress(java.nio.FloatBuffer buffer)
public static long getAddress(java.nio.FloatBuffer buffer, int position)
public static long getAddress(java.nio.LongBuffer buffer)
public static long getAddress(java.nio.LongBuffer buffer, int position)
public static long getAddress(java.nio.DoubleBuffer buffer)
public static long getAddress(java.nio.DoubleBuffer buffer, int position)
public static long getAddress(PointerBuffer buffer)
public static long getAddress(PointerBuffer buffer, int position)
public static long getAddressSafe(java.nio.ByteBuffer buffer)
public static long getAddressSafe(java.nio.ByteBuffer buffer, int position)
public static long getAddressSafe(java.nio.ShortBuffer buffer)
public static long getAddressSafe(java.nio.ShortBuffer buffer, int position)
public static long getAddressSafe(java.nio.CharBuffer buffer)
public static long getAddressSafe(java.nio.CharBuffer buffer, int position)
public static long getAddressSafe(java.nio.IntBuffer buffer)
public static long getAddressSafe(java.nio.IntBuffer buffer, int position)
public static long getAddressSafe(java.nio.FloatBuffer buffer)
public static long getAddressSafe(java.nio.FloatBuffer buffer, int position)
public static long getAddressSafe(java.nio.LongBuffer buffer)
public static long getAddressSafe(java.nio.LongBuffer buffer, int position)
public static long getAddressSafe(java.nio.DoubleBuffer buffer)
public static long getAddressSafe(java.nio.DoubleBuffer buffer, int position)
public static long getAddressSafe(PointerBuffer buffer)
public static long getAddressSafe(PointerBuffer buffer, int position)
public static java.nio.ByteBuffer encodeASCII(java.lang.CharSequence text)
text
- the text to encodeString.getBytes()
public static java.nio.ByteBuffer encodeUTF8(java.lang.CharSequence text)
text
- the text to encodeString.getBytes()
public static java.nio.ByteBuffer encodeUTF16(java.lang.CharSequence text)
text
- the text to encodepublic static java.lang.String decodeASCII(java.nio.ByteBuffer buffer)
public static java.lang.String decodeUTF8(java.nio.ByteBuffer buffer)
public static java.lang.String decodeUTF16(java.nio.ByteBuffer buffer)
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.