Package org.nustaq.serialization.minbin
Class MBIn
java.lang.Object
org.nustaq.serialization.minbin.MBIn
Date: 12.04.2014
Time: 22:10
Input reader for minbin byte[]
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
getCount()
int
getPos()
byte
peekIn()
readArrayRaw
(byte type, int len, Object resultingArray) read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])byte
readIn()
long
readInt()
readTag
(byte tag) void
reset()
void
setBuffer
(byte[] buf, int count) void
setPos
(int newpos)
-
Field Details
-
bytez
protected byte[] bytez -
pos
protected int pos
-
-
Constructor Details
-
MBIn
public MBIn(byte[] bytez, int pos) -
MBIn
-
-
Method Details
-
readIn
public byte readIn() -
peekIn
public byte peekIn() -
readInt
public long readInt() -
readArray
-
readArrayRaw
read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])- Parameters:
type
- type tag.len
-resultingArray
-- Returns:
-
readTag
-
readObject
-
getBuffer
public byte[] getBuffer() -
getPos
public int getPos() -
setPos
public void setPos(int newpos) -
setBuffer
public void setBuffer(byte[] buf, int count) -
reset
public void reset() -
getCount
public int getCount()
-