ByteBufferUtil

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)

パブリック コンストラクタ

ByteBufferUtil

public ByteBufferUtil ()

パブリック メソッド

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

例外
IOException

putString

public static void putString (ByteBuffer buf, 
                String str)

パラメータ
buf ByteBuffer

str String