Class MBIn

java.lang.Object
org.nustaq.serialization.minbin.MBIn

public class MBIn extends Object
Date: 12.04.2014 Time: 22:10 Input reader for minbin byte[]
  • Field Details

    • bytez

      protected byte[] bytez
    • pos

      protected int pos
  • Constructor Details

    • MBIn

      public MBIn(byte[] bytez, int pos)
    • MBIn

      public MBIn(MinBin mb, byte[] bytez, int pos)
  • Method Details

    • readIn

      public byte readIn()
    • peekIn

      public byte peekIn()
    • readInt

      public long readInt()
    • readArray

      public Object readArray()
    • readArrayRaw

      public Object readArrayRaw(byte type, int len, Object resultingArray)
      read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])
      Parameters:
      type - type tag.
      len -
      resultingArray -
      Returns:
    • readTag

      public Object readTag(byte tag)
    • readObject

      public Object 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()