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, wait
appendBytes, appendBytes, basicRangeCheck, checkReadPos, checkWritePos, getBytes, toByteArray, toByteArray
public 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 ByteBank
public void setBytes(long startpos, byte[] bytes, int offset, int length)
ByteBank
public void setByte(long pos, byte b)
ByteBank
public void clear()
ByteBank
public byte getByte(long pos)
public int getBytes(long startPos, byte[] b, int offset, int length)
public long size()
public boolean isReadOnly()
isReadOnly
in interface ByteBank
Copyright © 2015–2022 SciJava. All rights reserved.