public class BufferUtils
extends java.lang.Object
http://code.google.com/p/android/issues/detail?id=11078,
http://code.google.com/p/android/issues/detail?id=16941| Constructor and Description |
|---|
BufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
allocateDirectByteBuffer(int pCapacity) |
static void |
freeDirectByteBuffer(java.nio.ByteBuffer pByteBuffer) |
static short |
getUnsignedByte(java.nio.ByteBuffer pByteBuffer) |
static short |
getUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pPosition) |
static long |
getUnsignedInt(java.nio.ByteBuffer pByteBuffer) |
static long |
getUnsignedInt(java.nio.ByteBuffer pByteBuffer,
int pPosition) |
static int |
getUnsignedShort(java.nio.ByteBuffer pByteBuffer) |
static int |
getUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pPosition) |
static void |
put(java.nio.ByteBuffer pByteBuffer,
float[] pSource,
int pLength,
int pOffset) |
static void |
putUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pValue) |
static void |
putUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pPosition,
int pValue) |
static void |
putUnsignedInt(java.nio.ByteBuffer pByteBuffer,
int pPosition,
long pValue) |
static void |
putUnsignedInt(java.nio.ByteBuffer pByteBuffer,
long pValue) |
static void |
putUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pValue) |
static void |
putUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pPosition,
int pValue) |
public static java.nio.ByteBuffer allocateDirectByteBuffer(int pCapacity)
pCapacity - the capacity of the returned ByteBuffer in bytes.public static void freeDirectByteBuffer(java.nio.ByteBuffer pByteBuffer)
public static void put(java.nio.ByteBuffer pByteBuffer,
float[] pSource,
int pLength,
int pOffset)
pByteBuffer - must be a direct Buffer.pSource - pLength - to copy in pSource.pOffset - in pSource.public static short getUnsignedByte(java.nio.ByteBuffer pByteBuffer)
public static void putUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pValue)
public static short getUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pPosition)
public static void putUnsignedByte(java.nio.ByteBuffer pByteBuffer,
int pPosition,
int pValue)
public static int getUnsignedShort(java.nio.ByteBuffer pByteBuffer)
public static void putUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pValue)
public static int getUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pPosition)
public static void putUnsignedShort(java.nio.ByteBuffer pByteBuffer,
int pPosition,
int pValue)
public static long getUnsignedInt(java.nio.ByteBuffer pByteBuffer)
public static void putUnsignedInt(java.nio.ByteBuffer pByteBuffer,
long pValue)
public static long getUnsignedInt(java.nio.ByteBuffer pByteBuffer,
int pPosition)
public static void putUnsignedInt(java.nio.ByteBuffer pByteBuffer,
int pPosition,
long pValue)