Class UnsignedBufferAsInt
Object
UnsignedBuffer
UnsignedBufferAsInt
- Direct Known Subclasses:
UnsignedByteBuffer,UnsignedShortBuffer
A
UnsignedBuffer that exposes its internal types as int.
This means that an int is returned by getUnsigned and accepted by
putUnsigned and related functions.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnsignedBufferAsInt(Buffer buffer) Construct with a delegate buffer. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanabstract intGets an unsigned-byte (represented as a int) at the current buffer position.abstract intgetUnsigned(int index) Gets an unsigned-byte (represented as a int) at a particular buffer position.inthashCode()abstract voidputUnsigned(int value) Puts an unsigned-byte (represented by an int) at current buffer position.abstract voidputUnsigned(int index, int value) Puts an unsigned-byte (represented as a int) a particular buffer position.toString()Print a description and the the first {link #MAX_NUMBER_ROWS_COLUMNS_IN_TO_STRING} rows and columns as values.
-
Constructor Details
-
UnsignedBufferAsInt
Construct with a delegate buffer.- Parameters:
buffer- buffer to use as a delegate.
-
-
Method Details
-
getUnsigned
public abstract int getUnsigned()Gets an unsigned-byte (represented as a int) at the current buffer position.- Returns:
- unsigned-byte (represented by a int)
-
getUnsigned
public abstract int getUnsigned(int index) Gets an unsigned-byte (represented as a int) at a particular buffer position.- Parameters:
index- the buffer position- Returns:
- unsigned-byte (represented by a int)
-
putUnsigned
public abstract void putUnsigned(int value) Puts an unsigned-byte (represented by an int) at current buffer position.A conversion occurs from int to byte.
- Parameters:
value- the unsigned-byte (represented by an int)
-
putUnsigned
public abstract void putUnsigned(int index, int value) Puts an unsigned-byte (represented as a int) a particular buffer position.A conversion occurs from int to byte.
- Parameters:
index- the buffer positionvalue- the unsigned-byte (represented by an int)
-
toString
Print a description and the the first {link #MAX_NUMBER_ROWS_COLUMNS_IN_TO_STRING} rows and columns as values. -
equals
- Overrides:
equalsin classUnsignedBuffer
-
canEqual
- Overrides:
canEqualin classUnsignedBuffer
-
hashCode
public int hashCode()- Overrides:
hashCodein classUnsignedBuffer
-