com.android.ddmlib
Class ByteBufferUtil

java.lang.Object
  extended by com.android.ddmlib.ByteBufferUtil

public class ByteBufferUtil
extends java.lang.Object


Constructor Summary
ByteBufferUtil()
           
 
Method Summary
static java.lang.String getString(java.nio.ByteBuffer buf, int len)
           
static java.nio.ByteBuffer mapFile(java.io.File f, long offset, java.nio.ByteOrder byteOrder)
           
static void putString(java.nio.ByteBuffer buf, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferUtil

public ByteBufferUtil()
Method Detail

mapFile

@NonNull
public static java.nio.ByteBuffer mapFile(@NonNull
                                                  java.io.File f,
                                                  long offset,
                                                  @NonNull
                                                  java.nio.ByteOrder byteOrder)
                                   throws java.io.IOException
Throws:
java.io.IOException

getString

@NonNull
public static java.lang.String getString(@NonNull
                                                 java.nio.ByteBuffer buf,
                                                 int len)

putString

public static void putString(@NonNull
                             java.nio.ByteBuffer buf,
                             @NonNull
                             java.lang.String str)