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