Pointer marshalling as extension methods.
Wrapper class for disposing pointers.