Пример #1
0
        internal byte[] KV_GetCurrentKey(IntPtr cursor)
        {
            byte[] value     = null;
            int    keyLength = 0;
            int    res       = Libunqlite.unqlite_kv_cursor_key(cursor, null, out keyLength);

            if (res == 0)
            {
                value = new byte[keyLength];
                Libunqlite.unqlite_kv_cursor_key(cursor, value, out keyLength);
            }
            return(value);
        }