AcTools.LapTimes.LevelDbUtils.Iterator.KeyAsInt C# (CSharp) Method

KeyAsInt() public method

Return the key for the current entry. REQUIRES: Valid()
public KeyAsInt ( ) : int
return int
        public int KeyAsInt() {
            int length;
            var key = LevelDbInterop.leveldb_iter_key(Handle, out length);
            Throw();

            if (length != 4) throw new Exception("Key is not an integer");
            return Marshal.ReadInt32(key);
        }