org.flexdock.docking.drag.outline.x11
Class DataBuffer
java.lang.Object
org.flexdock.docking.drag.outline.x11.DataBuffer
public class DataBuffer
- extends Object
- Author:
- Christopher Butler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
DataBuffer
public DataBuffer()
DataBuffer
public DataBuffer(int initialBufferSize)
DataBuffer
public DataBuffer(byte[] rawData)
appendByte
public void appendByte(int data)
appendTwoBytes
public void appendTwoBytes(int data)
appendFourBytes
public void appendFourBytes(int data)
getBytes
public byte[] getBytes()
readByte
public int readByte(int offset)
readTwoBytes
public int readTwoBytes(int offset)
readFourBytes
public int readFourBytes(int offset)
getSubset
public byte[] getSubset(int offset,
int length)
getSubBuffer
public DataBuffer getSubBuffer(int offset,
int length)
decode
public static int decode(byte[] data)
encode
public static byte[] encode(int data,
int byteCount)
padLength
public static int padLength(int len)