বাইটবাফারইউটিল

public class ByteBufferUtil
extends Object

java.lang.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)

সরকারি নির্মাণকারী

বাইটবাফারইউটিল

public ByteBufferUtil ()

জনসাধারণের পদ্ধতি

ক্লিনবাফার

public static boolean cleanBuffer (ByteBuffer buffer)

অনুগ্রহ করে সতর্কতার সাথে ব্যবহার করুন। বেশিরভাগ ক্ষেত্রে কাজটি জেনারেল কন্ট্রাক্টরের (GC) উপর ছেড়ে দেওয়াই যথেষ্ট।

প্যারামিটার
buffer ByteBuffer

ফেরত
boolean

getString

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

নিক্ষেপ
IOException

putString

public static void putString (ByteBuffer buf, 
                String str)

প্যারামিটার
buf ByteBuffer

str String