| Constructor and Description |
|---|
ByteBufferByteBank() |
ByteBufferByteBank(Function<Integer,ByteBuffer> provider) |
ByteBufferByteBank(Function<Integer,ByteBuffer> provider,
int initialCapacity) |
ByteBufferByteBank(int initialCapacity) |
| 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() |
boolean |
isReadOnly() |
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, toByteArray, toByteArraypublic ByteBufferByteBank()
public ByteBufferByteBank(Function<Integer,ByteBuffer> provider)
public ByteBufferByteBank(Function<Integer,ByteBuffer> provider, int initialCapacity)
public ByteBufferByteBank(int initialCapacity)
public 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)
public long size()
public boolean isReadOnly()
isReadOnly in interface ByteBankCopyright © 2015–2022 SciJava. All rights reserved.