Ejemplo n.º 1
0
 /// <summary>
 /// Frees the storage occupied by a raw document.
 /// </summary>
 /// <param name="rawDoc"></param>
 public static void c4raw_free(C4RawDocument *rawDoc)
 {
     #if DEBUG
     var ptr = (IntPtr)rawDoc;
     #if ENABLE_LOGGING
     if(ptr != IntPtr.Zero && !_AllocatedObjects.ContainsKey(ptr)) {
         Console.WriteLine("WARNING: [c4db_delete] freeing object 0x{0} that was not found in allocated list", ptr.ToString("X"));
     } else {
     #endif
         _AllocatedObjects.Remove(ptr);
     #if ENABLE_LOGGING
     }
     #endif
     #endif
     _c4raw_free(rawDoc);
 }
Ejemplo n.º 2
0
 private static extern void _c4raw_free(C4RawDocument *rawDoc);