PeterO.Cbor.FastInteger2.AsInt32 C# (CSharp) Method

AsInt32() private method

private AsInt32 ( ) : int
return int
        internal int AsInt32()
        {
            switch (this.integerMode) {
            case 0:
              return this.smallValue;
            case 1:
              return this.mnum.ToInt32();
            case 2:
              return (int)this.largeValue;
            default: throw new InvalidOperationException();
              }
        }