public class

BufferUtils

extends Object
java.lang.Object
   ↳ org.andengine.opengl.util.BufferUtils

Class Overview

(c) Zynga 2011

See Also
  • http://code.google.com/p/android/issues/detail?id=11078
  • http://code.google.com/p/android/issues/detail?id=16941

Summary

Public Constructors
BufferUtils()
Public Methods
static ByteBuffer allocateDirectByteBuffer(int pCapacity)
static void freeDirectByteBuffer(ByteBuffer pByteBuffer)
static short getUnsignedByte(ByteBuffer pByteBuffer, int pPosition)
static short getUnsignedByte(ByteBuffer pByteBuffer)
static long getUnsignedInt(ByteBuffer pByteBuffer, int pPosition)
static long getUnsignedInt(ByteBuffer pByteBuffer)
static int getUnsignedShort(ByteBuffer pByteBuffer)
static int getUnsignedShort(ByteBuffer pByteBuffer, int pPosition)
static void put(ByteBuffer pByteBuffer, float[] pSource, int pLength, int pOffset)
static void putUnsignedByte(ByteBuffer pByteBuffer, int pPosition, int pValue)
static void putUnsignedByte(ByteBuffer pByteBuffer, int pValue)
static void putUnsignedInt(ByteBuffer pByteBuffer, long pValue)
static void putUnsignedInt(ByteBuffer pByteBuffer, int pPosition, long pValue)
static void putUnsignedShort(ByteBuffer pByteBuffer, int pValue)
static void putUnsignedShort(ByteBuffer pByteBuffer, int pPosition, int pValue)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BufferUtils ()

Public Methods

public static ByteBuffer allocateDirectByteBuffer (int pCapacity)

Parameters
pCapacity the capacity of the returned ByteBuffer in bytes.

public static void freeDirectByteBuffer (ByteBuffer pByteBuffer)

public static short getUnsignedByte (ByteBuffer pByteBuffer, int pPosition)

public static short getUnsignedByte (ByteBuffer pByteBuffer)

public static long getUnsignedInt (ByteBuffer pByteBuffer, int pPosition)

public static long getUnsignedInt (ByteBuffer pByteBuffer)

public static int getUnsignedShort (ByteBuffer pByteBuffer)

public static int getUnsignedShort (ByteBuffer pByteBuffer, int pPosition)

public static void put (ByteBuffer pByteBuffer, float[] pSource, int pLength, int pOffset)

Parameters
pByteBuffer must be a direct Buffer.
pLength to copy in pSource.
pOffset in pSource.

public static void putUnsignedByte (ByteBuffer pByteBuffer, int pPosition, int pValue)

public static void putUnsignedByte (ByteBuffer pByteBuffer, int pValue)

public static void putUnsignedInt (ByteBuffer pByteBuffer, long pValue)

public static void putUnsignedInt (ByteBuffer pByteBuffer, int pPosition, long pValue)

public static void putUnsignedShort (ByteBuffer pByteBuffer, int pValue)

public static void putUnsignedShort (ByteBuffer pByteBuffer, int pPosition, int pValue)