ByteBufferUtil

public class ByteBufferUtil
extends Object

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


Résumé

Constructeurs publics

ByteBufferUtil()

Méthodes publiques

static boolean cleanBuffer(ByteBuffer buffer)

Veuillez l'utiliser avec précaution.

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

Constructeurs publics

ByteBufferUtil

public ByteBufferUtil ()

Méthodes publiques

cleanBuffer

public static boolean cleanBuffer (ByteBuffer buffer)

Veuillez l'utiliser avec précaution. Dans la plupart des cas, il suffit de laisser le garbage collector faire son travail.

Paramètres
buffer ByteBuffer

Renvoie
boolean

getString

public static String getString (ByteBuffer buf, 
                int len)

Paramètres
buf ByteBuffer

len int

Renvoie
String

mapFile

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

Paramètres
f File

offset long

byteOrder ByteOrder

Renvoie
ByteBuffer

putString

public static void putString (ByteBuffer buf, 
                String str)

Paramètres
buf ByteBuffer

str String