BoolLayout

public final class BoolLayout

Data layout that converts booleans from/to bytes.

Public Constructors

Public Methods

boolean
readBoolean(ByteDataBuffer buffer, long index)
void
writeBoolean(ByteDataBuffer buffer, boolean value, long index)

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.ndarray.buffer.layout.BooleanDataLayout
abstract BooleanDataBuffer
applyTo(ByteDataBuffer buffer)
Apply this layout to the provided buffer.
abstract boolean
readBoolean(ByteDataBuffer buffer, long index)
Reads n = scale() values from the buffer at the given index and return them as a boolean.
abstract Boolean
readObject(ByteDataBuffer buffer, long index)
Reads n = scale() values from the buffer at the given index and return them as a single value in the user type.
abstract 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.
abstract void
writeObject(ByteDataBuffer buffer, Boolean value, long index)
org.tensorflow.ndarray.buffer.layout.DataLayout
abstract DataBuffer<Boolean>
applyTo(ByteDataBuffer buffer)
Apply this layout to the provided buffer.
abstract Boolean
readObject(ByteDataBuffer buffer, long index)
Reads n = scale() values from the buffer at the given index and return them as a single value in the user type.
abstract int
scale()
Indicates the number of buffer values are required to represent a single user value, default is 1.
abstract void
writeObject(ByteDataBuffer buffer, Boolean value, long index)
Writes a user value into the buffer at the given index after converting it to the buffer type.

Public Constructors

public BoolLayout ()

Public Methods

public boolean readBoolean (ByteDataBuffer buffer, long index)

public void writeBoolean (ByteDataBuffer buffer, boolean value, long index)