public class BSONByteBuffer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ByteBuffer |
buf |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
array() |
boolean |
equals(Object o) |
ByteBuffer |
get(byte[] bytes) |
ByteBuffer |
get(byte[] bytes,
int offset,
int length) |
byte |
get(int i) |
String |
getCString(int offset) |
int |
getInt(int i)
Gets a Little Endian Integer
|
int |
getIntBE(int i) |
int |
getIntLE(int i) |
long |
getLong(int i) |
String |
getUTF8String(int valueOffset) |
int |
hashCode() |
Buffer |
position(int i) |
Buffer |
reset() |
int |
size() |
String |
toString() |
static BSONByteBuffer |
wrap(byte[] bytes) |
static BSONByteBuffer |
wrap(byte[] bytes,
int offset,
int length) |
protected ByteBuffer buf
public static BSONByteBuffer wrap(byte[] bytes, int offset, int length)
public static BSONByteBuffer wrap(byte[] bytes)
public byte get(int i)
public ByteBuffer get(byte[] bytes, int offset, int length)
public ByteBuffer get(byte[] bytes)
public byte[] array()
public int getInt(int i)
i - Index to read frompublic int getIntLE(int i)
public int getIntBE(int i)
public long getLong(int i)
public String getCString(int offset)
public String getUTF8String(int valueOffset)
public Buffer position(int i)
public Buffer reset()
public int size()
Copyright © 2015. All Rights Reserved.