AcTools.LapTimes.LevelDbUtils.Iterator.KeyAsInt C# (CSharp) Méthode

KeyAsInt() public méthode

Return the key for the current entry. REQUIRES: Valid()
public KeyAsInt ( ) : int
Résultat 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);
        }