void setByte(int offset, char b);

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

char getByte(int offset);


{
    // your code
}