public final class BoolLayout extends Object implements BooleanDataLayout<ByteDataBuffer>
| Constructor and Description |
|---|
BoolLayout() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean(ByteDataBuffer buffer,
long index)
Reads
n = scale() values from the buffer at the given index and return them as a boolean. |
void |
writeBoolean(ByteDataBuffer buffer,
boolean value,
long index)
Writes a boolean into the buffer at the given index after converting it to the buffer type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyTo, readObject, writeObjectscalepublic void writeBoolean(ByteDataBuffer buffer, boolean value, long index)
BooleanDataLayoutwriteBoolean in interface BooleanDataLayout<ByteDataBuffer>buffer - the buffer to write tovalue - the boolean to convert and writeindex - index in the buffer where the converted value should be writtenBooleanDataLayout.writeObject(DataBuffer, Boolean, long)public boolean readBoolean(ByteDataBuffer buffer, long index)
BooleanDataLayoutn = scale() values from the buffer at the given index and return them as a boolean.readBoolean in interface BooleanDataLayout<ByteDataBuffer>buffer - the buffer to read fromindex - position of the buffer to read in the bufferBooleanDataLayout.readObject(DataBuffer, long)Copyright © 2015–2020. All rights reserved.