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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intgetCount()intgetPos()bytepeekIn()readArrayRaw(byte type, int len, Object resultingArray) read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])bytereadIn()longreadInt()readTag(byte tag) voidreset()voidsetBuffer(byte[] buf, int count) voidsetPos(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()
-