ByteBufferUtil

public class ByteBufferUtil
extends Object

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


Podsumowanie

Publiczne konstruktory

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)

Publiczne konstruktory

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

Zwroty
boolean

getString

public static String getString (ByteBuffer buf, 
                int len)

Parametry
buf ByteBuffer

len int

Zwroty
String

mapFile

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

Parametry
f File

offset long

byteOrder ByteOrder

Zwroty
ByteBuffer

putString

public static void putString (ByteBuffer buf, 
                String str)

Parametry
buf ByteBuffer

str String