void RestoreStateAndPos(Context ctx) { buffer.Pos = ctx.bPos; cNum = ctx.cNum; state = ctx.state; chr = ctx.cChr; }