ByteBufferUtil

public class ByteBufferUtil
extends Object

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


סיכום

‫constructors ציבוריים

ByteBufferUtil()

‫methods ציבוריים

static boolean cleanBuffer(ByteBuffer buffer)

חשוב להשתמש באפשרות הזו בזהירות.

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

Constructors ציבוריים

ByteBufferUtil

public ByteBufferUtil ()

‫methods ציבוריים

cleanBuffer

public static boolean cleanBuffer (ByteBuffer buffer)

חשוב להשתמש באפשרות הזו בזהירות. ברוב המקרים, מספיק להשאיר את העבודה ל-GC.

פרמטרים
buffer ByteBuffer

החזרות
boolean

getString

public static String getString (ByteBuffer buf, 
                int len)

פרמטרים
buf ByteBuffer

len int

החזרות
String

mapFile

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

פרמטרים
f File

offset long

byteOrder ByteOrder

החזרות
ByteBuffer

putString

public static void putString (ByteBuffer buf, 
                String str)

פרמטרים
buf ByteBuffer

str String