| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
The length of a buffer.
|
| Constructor and Description |
|---|
Block()
Allocates a block.
|
| Modifier and Type | Method and Description |
|---|---|
SMBus.Block |
clear()
Fills the block with 0.
|
int |
get(int index)
Retrieves the byte at the given position.
|
int |
length()
Retrieves the current length of this block.
|
SMBus.Block |
set(int index,
int b)
Sets the byte at the given position.
|
public static final int SIZE
public SMBus.Block clear()
public int length()
Setting a byte to an index adjusts the length of the block to the highest index.
set( int, int )public int get(int index)
index - Where.public SMBus.Block set(int index, int b)
The length of this block will be adjusted to reflect the highest index of a byte set by the user or by an SMBus operation.
index - Which one.b - An unsigned byte.