public class GrowableByteBuffer extends Object
| Constructor and Description |
|---|
GrowableByteBuffer(ByteBuffer buf) |
GrowableByteBuffer(int initSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
clear() |
static int |
decodeZigZag32(int n) |
static long |
decodeZigZag64(long n) |
static int |
encodeZigZag32(int value) |
static long |
encodeZigZag64(long value) |
void |
flip() |
byte |
get() |
void |
get(byte[] dst) |
byte |
get(int index) |
double |
getDouble() |
double |
getDouble(int index) |
float |
getFloat() |
float |
getFloat(int index) |
int |
getInt() |
int |
getInt(int index) |
long |
getLong() |
long |
getLong(int index) |
short |
getShort() |
short |
getShort(int index) |
long |
getVarint() |
int |
getZigZag32() |
long |
getZigZag64() |
int |
limit() |
void |
limit(int newLimit) |
int |
position() |
void |
position(int newPosition) |
void |
put(byte b) |
void |
put(byte[] b) |
void |
put(int index,
byte b) |
void |
putDouble(double value) |
void |
putDouble(int index,
double value) |
void |
putFloat(float value) |
void |
putFloat(int index,
float value) |
void |
putInt(int value) |
void |
putInt(int index,
int value) |
void |
putLong(int index,
long value) |
void |
putLong(long value) |
void |
putShort(int index,
short value) |
void |
putShort(short value) |
int |
putVarint(long value) |
int |
putZigzag32(int value) |
int |
putZigzag64(long value) |
int |
remaining() |
public GrowableByteBuffer(int initSize)
public GrowableByteBuffer(ByteBuffer buf)
public static int encodeZigZag32(int value)
public static long encodeZigZag64(long value)
public static int decodeZigZag32(int n)
public static long decodeZigZag64(long n)
public void put(byte b)
public void put(int index,
byte b)
public void put(byte[] b)
public void putShort(short value)
public void putShort(int index,
short value)
public void putInt(int value)
public void putInt(int index,
int value)
public void putLong(long value)
public void putLong(int index,
long value)
public void putFloat(float value)
public void putFloat(int index,
float value)
public void putDouble(double value)
public void putDouble(int index,
double value)
public int putZigzag32(int value)
public int putZigzag64(long value)
public int putVarint(long value)
public byte get()
public byte get(int index)
public void get(byte[] dst)
public short getShort()
public short getShort(int index)
public int getInt()
public int getInt(int index)
public long getLong()
public long getLong(int index)
public float getFloat()
public float getFloat(int index)
public double getDouble()
public double getDouble(int index)
public int getZigZag32()
public long getZigZag64()
public long getVarint()
public void flip()
public int position()
public void position(int newPosition)
public int limit()
public void limit(int newLimit)
public int capacity()
public int remaining()
public void clear()
Copyright © 2019. All rights reserved.