public void Backup(int amount) { inBuf += amount; if ((bufferPosition -= amount) < 0) { bufferPosition += bufferSize; } }