void setByte(int offset, byte b);

You should not use setByte() and getByte().

byte getByte(int offset);


{
    // your code
}