public class I2CBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
length
The length of this buffer.
|
| Constructor and Description |
|---|
I2CBuffer(int length)
Allocates a buffer.
|
| Modifier and Type | Method and Description |
|---|---|
I2CBuffer |
clear()
Fills the buffer with 0.
|
int |
get(int index)
Retrieves the byte at the given position.
|
I2CBuffer |
set(int index,
int b)
Sets the byte at the given position.
|
public I2CBuffer(int length)
length - The number of bytes.public int get(int index)
index - Which byte.public I2CBuffer set(int index, int b)
index - Where.b - An unsigned byte.public I2CBuffer clear()