private bool EnterBitfield(BitfieldType type, string name, uint offset, bool visible, uint pluginLine) { if (visible || _showInvisibles) { _currentBitfield = new BitfieldData(name, offset, 0, type, pluginLine); return(true); } return(false); }
public void LeaveBitfield() { if (_currentBitfield == null) { throw new InvalidOperationException("Cannot leave a bitfield if one isn't active"); } AddValue(_currentBitfield); _currentBitfield = null; }