public class MBOut extends Object
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytez() |
int |
getWritten() |
void |
reset()
completely reset state
|
void |
reset(byte[] bytez)
completely reset and use given bytearray as buffer
|
void |
resetPosition()
only reset position
|
void |
writeArray(Object primitiveArray,
int start,
int len)
write primitive array + header.
|
void |
writeInt(byte type,
long data)
write an int type with header
|
void |
writeIntPacked(long data)
encode int using only as much bytes as needed to represent it
|
void |
writeObject(Object o) |
void |
writeRaw(byte[] bufferedName,
int i,
int length)
allow write through to underlying byte for performance reasons
|
protected void |
writeRawInt(byte type,
long data)
encode int without header tag
|
void |
writeTag(Object obj) |
void |
writeTagHeader(byte tagId) |
public MBOut()
public MBOut(MinBin mb)
public void writeInt(byte type,
long data)
type - data - protected void writeRawInt(byte type,
long data)
data - public void writeIntPacked(long data)
data - public void writeArray(Object primitiveArray, int start, int len)
primitiveArray - start - len - public void writeTagHeader(byte tagId)
public void writeTag(Object obj)
public int getWritten()
public byte[] getBytez()
public void reset()
public void reset(byte[] bytez)
bytez - public void resetPosition()
public void writeObject(Object o)
public void writeRaw(byte[] bufferedName,
int i,
int length)
bufferedName - i - length - Copyright © 2015. All rights reserved.