Use indices instead of `buffer.readUInt8`