public class BreezeBuffer extends Object
| 构造器和说明 |
|---|
BreezeBuffer(byte[] bytes) |
BreezeBuffer(ByteBuffer buf) |
BreezeBuffer(int initSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
byte[] |
getBytes()
get bytes remained in buf.
|
BreezeContext |
getContext() |
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) |
String |
getUTF8(int size) |
int |
getUTF8Length(String string) |
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(byte[] b,
int offset,
int length) |
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) |
void |
putUTF8(String string,
int length,
boolean putLength) |
int |
putVarint(long value) |
int |
putZigzag32(int value) |
int |
putZigzag64(long value) |
int |
remaining() |
public BreezeBuffer(int initSize)
public BreezeBuffer(ByteBuffer buf)
public BreezeBuffer(byte[] bytes)
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 put(byte[] b,
int offset,
int length)
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 int getUTF8Length(String string)
public void putUTF8(String string, int length, boolean putLength)
public String getUTF8(int size) throws BreezeException
BreezeExceptionpublic byte get()
public byte get(int index)
public void get(byte[] dst)
public byte[] getBytes()
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()
public BreezeContext getContext()
Copyright © 2019. All rights reserved.