Wrapper made to interact with unmanaged memory in C#