| Constructor and Description |
|---|
ByteArrayByteBank()
Creates a
ByteArrayByteBank. |
ByteArrayByteBank(byte[] bytes)
Creates a
ByteArrayByteBank that wraps the provided byte array. |
ByteArrayByteBank(ByteArray bytes)
Creates a
ByteArrayByteBank that wraps the specified
ByteArray. |
ByteArrayByteBank(int initialCapacity)
Creates a
ByteArrayByteBank with the specified initial capacity. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the buffer
|
byte |
getByte(long pos) |
int |
getBytes(long startPos,
byte[] b,
int offset,
int length) |
long |
getMaxBufferSize() |
void |
setByte(long pos,
byte b)
Sets the byte at the given position
|
void |
setBytes(long startpos,
byte[] bytes,
int offset,
int length)
Sets the bytes starting form the given position to the values form the
provided array.
|
long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendBytes, appendBytes, basicRangeCheck, checkReadPos, checkWritePos, getBytes, isReadOnly, toByteArray, toByteArraypublic ByteArrayByteBank()
ByteArrayByteBank.public ByteArrayByteBank(int initialCapacity)
ByteArrayByteBank with the specified initial capacity.initialCapacity - the initial capacity of this ByteBankpublic ByteArrayByteBank(byte[] bytes)
ByteArrayByteBank that wraps the provided byte array.bytes - the bytes to wrappublic ByteArrayByteBank(ByteArray bytes)
ByteArrayByteBank that wraps the specified
ByteArray.bytes - the ByteArray to wrappublic long getMaxBufferSize()
getMaxBufferSize in interface ByteBankpublic void setBytes(long startpos,
byte[] bytes,
int offset,
int length)
ByteBankpublic void setByte(long pos,
byte b)
ByteBankpublic void clear()
ByteBankpublic byte getByte(long pos)
public int getBytes(long startPos,
byte[] b,
int offset,
int length)
Copyright © 2009–2023 SciJava. All rights reserved.