C# (CSharp) IronPython.Modules MemoryHolder.AddObject - 8 examples found. These are the top rated real world C# (CSharp) examples of IronPython.Modules.MemoryHolder.AddObject extracted from open source projects. You can rate examples to help us improve the quality of examples.
Used to track the lifetime of objects when one memory region depends upon another memory region. For example if you have an array of objects that each have an element which has it's own lifetime the array needs to keep the individual elements alive. The keys used here match CPython's keys as tested by CPython's test_ctypes. Typically they are a string which is the array index, "ffffffff" when from_buffer is used, or when it's a simple type there's just a string instead of the full dictionary - we store that under the key "str".