public class WriteBuffer extends Object
Constructor and Description |
---|
WriteBuffer() |
WriteBuffer(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
int |
getLength() |
byte[] |
getLengthWithPacketSeq(byte packetNumber) |
static byte[] |
intToByteArray(int l) |
static byte[] |
longToByteArray(long l) |
byte[] |
toByteArrayWithLength(byte packetNumber) |
WriteBuffer |
writeByte(byte theByte) |
WriteBuffer |
writeByteArray(byte[] bytes) |
WriteBuffer |
writeBytes(byte theByte,
int count) |
WriteBuffer |
writeInt(int theInt) |
WriteBuffer |
writeShort(short theShort) |
WriteBuffer |
writeString(String str) |
public WriteBuffer writeByte(byte theByte)
public WriteBuffer writeByteArray(byte[] bytes)
public WriteBuffer writeBytes(byte theByte, int count)
public WriteBuffer writeShort(short theShort)
public WriteBuffer writeInt(int theInt)
public WriteBuffer writeString(String str)
public byte[] getLengthWithPacketSeq(byte packetNumber)
public byte[] getBuffer()
public byte[] toByteArrayWithLength(byte packetNumber)
public static byte[] intToByteArray(int l)
public static byte[] longToByteArray(long l)
public int getLength()
Copyright © 2015. All rights reserved.