ByteBufferUtil

public class ByteBufferUtil
extends Object

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


Podsumowanie

Konstruktory publiczne

ByteBufferUtil()

Metody publiczne

static boolean cleanBuffer(ByteBuffer buffer)

Używaj z rozwagą.

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

Konstruktory publiczne

ByteBufferUtil

public ByteBufferUtil ()

Metody publiczne

cleanBuffer

public static boolean cleanBuffer (ByteBuffer buffer)

Używaj z rozwagą. W większości przypadków wystarczy pozostawić to zadanie modułowi GC.

Parametry
buffer ByteBuffer

Zwraca
boolean

getString

public static String getString (ByteBuffer buf, 
                int len)

Parametry
buf ByteBuffer

len int

Zwraca
String

mapFile

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

Parametry
f File

offset long

byteOrder ByteOrder

Zwraca
ByteBuffer

Zgłasza
IOException

putString

public static void putString (ByteBuffer buf, 
                String str)

Parametry
buf ByteBuffer

str String