ByteBufferUtil

public class ByteBufferUtil
extends Object

java.lang.Object
   ↳ com.android.ddmlib.ByteBufferUtil


Resumen

Constructores públicos

ByteBufferUtil()

Métodos públicos

static boolean cleanBuffer(ByteBuffer buffer)

Úsalo con cuidado.

static String getString(ByteBuffer buf, int len)
static ByteBuffer mapFile(File f, long offset, ByteOrder byteOrder)
static void putString(ByteBuffer buf, String str)

Constructores públicos

ByteBufferUtil

public ByteBufferUtil ()

Métodos públicos

cleanBuffer

public static boolean cleanBuffer (ByteBuffer buffer)

Úsalo con cuidado. En la mayoría de los casos, dejar el trabajo en manos del GC es suficiente.

Parámetros
buffer ByteBuffer

Muestra
boolean

getString

public static String getString (ByteBuffer buf, 
                int len)

Parámetros
buf ByteBuffer

len int

Muestra
String

mapFile

public static ByteBuffer mapFile (File f, 
                long offset, 
                ByteOrder byteOrder)

Parámetros
f File

offset long

byteOrder ByteOrder

Muestra
ByteBuffer

putString

public static void putString (ByteBuffer buf, 
                String str)

Parámetros
buf ByteBuffer

str String