public BoolType_ _runOpen(byte nIndex) { __tuple <BoolStruct, BoolStruct> tuple_ = this._getIndex(nIndex); BoolStruct first = tuple_._get_0(); BoolStruct second = tuple_._get_1(); BoolType_ result = first._getBoolType(); if (BoolType_.mSucess_ == result) { result = this._openIndex(first._getLength(), first._getFirst(), first._getSecond()); } if ((BoolType_.mOpened_ == result) && (BoolType_.mSucess_ == second._getBoolType())) { result = this._openIndex(second._getLength(), second._getFirst(), second._getSecond()); } if (BoolType_.mNext_ == result) { this._clearIndex(first._getLength(), first._getFirst(), first._getSecond()); this._clearIndex(second._getLength(), second._getFirst(), second._getSecond()); } return(result); }
public __tuple <BoolType_, byte> _getOpen( ushort nIndex) { __tuple <BoolStruct, BoolStruct> tuple_ = this._getIndex(nIndex); BoolStruct first = tuple_._get_0(); BoolStruct second = tuple_._get_1(); byte pos = 0; BoolType_ boolType = first._getBoolType(); if (BoolType_.mSucess_ == boolType) { __tuple <BoolType_, byte> tupleOpen = this._getOpen(first._getLength(), first._getFirst(), first._getSecond()); boolType = tupleOpen._get_0(); pos = tupleOpen._get_1(); } if ((BoolType_.mOpened_ == boolType) && (BoolType_.mSucess_ == second._getBoolType())) { __tuple <BoolType_, byte> tupleOpen = this._getOpen(second._getLength(), second._getFirst(), second._getSecond()); boolType = tupleOpen._get_0(); pos = tupleOpen._get_1(); } return(new __tuple <BoolType_, byte>(boolType, pos)); }
public BoolType_ _isOpen(ushort nIndex) { BoolStruct boolStruct_ = this._getSecond(nIndex); BoolType_ result = boolStruct_._getBoolType(); if (BoolType_.mSucess_ == result) { result = this._isOpen( boolStruct_._getLength(), boolStruct_._getSecond()); } return(result); }