randomPoison / cs-bindgen

Experiment in using Rust to build a library that can be loaded by Unity across multiple platforms
4 stars 0 forks source link

Use SafeHandle for handle types #16

Open randomPoison opened 4 years ago

randomPoison commented 4 years ago

SafeHandle provides stronger guarantees about correct disposal of unmanaged resources that what we can currently provide with void* and IDisposable currently. Here's a fun article talking about how to use it.