Package org.fife.ui.hex
Class ByteBuffer
java.lang.Object
org.fife.ui.hex.ByteBuffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte
getByte
(int offset) int
getSize()
void
insertByte
(int offset, byte b) void
insertBytes
(int offs, byte[] b) int
read
(int offset, byte[] buf) void
remove
(int offset, int len) void
remove
(int offset, int len, byte[] removed) void
setByte
(int offset, byte b)
-
Field Details
-
buffer
private byte[] buffer
-
-
Constructor Details
-
ByteBuffer
public ByteBuffer(int size) -
ByteBuffer
- Throws:
IOException
-
ByteBuffer
- Throws:
IOException
-
ByteBuffer
- Throws:
IOException
-
-
Method Details
-
getByte
public byte getByte(int offset) -
getSize
public int getSize() -
insertByte
public void insertByte(int offset, byte b) -
insertBytes
public void insertBytes(int offs, byte[] b) -
read
public int read(int offset, byte[] buf) -
remove
public void remove(int offset, int len) -
remove
public void remove(int offset, int len, byte[] removed) -
setByte
public void setByte(int offset, byte b) -
getBuffer
public byte[] getBuffer()
-