ابزار ByteBuffer

public class ByteBufferUtil
extends Object

شیء جاوا
com.android.ddmlib.ByteBufferUtil


خلاصه

سازندگان عمومی

ByteBufferUtil ()

روش‌های عمومی

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)

سازندگان عمومی

ابزار ByteBuffer

public ByteBufferUtil ()

روش‌های عمومی

پاک‌کننده

public static boolean cleanBuffer (ByteBuffer buffer)

لطفا با احتیاط استفاده کنید. در بیشتر موارد، سپردن کار به GC کافی است.

پارامترها
buffer ByteBuffer

بازگشت‌ها
boolean

رشته‌ی دریافت

public static String getString (ByteBuffer buf, 
                int len)

پارامترها
buf ByteBuffer

len int

بازگشت‌ها
String

فایل نقشه

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