public class ByteBufs extends Object
ByteBuffer.| Constructor and Description |
|---|
ByteBufs() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
allocate(int capacity) |
static ByteBuffer |
allocateDirect(int capacity) |
static ByteBuffer |
allocatePreferred(int capacity) |
static ByteBuffer |
allocateReadWrite(ByteBuffer original) |
static ByteBuffer |
ensurePreferred(ByteBuffer in) |
static ByteBuffer |
order(ByteBuffer original) |
static ByteBuffer |
wrap(byte[] array) |
static ByteBuffer |
wrap(byte[] array,
int offset,
int length) |
public static ByteBuffer ensurePreferred(ByteBuffer in)
public static ByteBuffer wrap(byte[] array)
public static ByteBuffer wrap(byte[] array, int offset, int length)
public static ByteBuffer allocate(int capacity)
public static ByteBuffer allocateDirect(int capacity)
public static ByteBuffer allocatePreferred(int capacity)
public static ByteBuffer order(ByteBuffer original)
public static ByteBuffer allocateReadWrite(ByteBuffer original)
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.