Exemplo n.º 1
0
 protected override void DestroyNativeList()
 {
     if (ownsNativeObject_)
     {
         HashListNative.kth_core_hash_list_destruct(NativeInstance);
     }
 }
Exemplo n.º 2
0
        protected override byte[] GetNthNativeElement(UInt64 n)
        {
            var managedHash = new hash_t();

            HashListNative.kth_core_hash_list_nth_out(NativeInstance, n, ref managedHash);
            return(managedHash.hash);
        }
Exemplo n.º 3
0
 protected override void AddElement(byte[] element)
 {
     HashListNative.kth_core_hash_list_push_back(NativeInstance, element);
 }
Exemplo n.º 4
0
 protected override UInt64 GetCount()
 {
     return(HashListNative.kth_core_hash_list_count(NativeInstance));
 }
Exemplo n.º 5
0
 protected override IntPtr CreateNativeList()
 {
     ownsNativeObject_ = true;
     return(HashListNative.kth_core_hash_list_construct_default());
 }