//new UnmanagedBuffer on a user app would fail as the buffer would be //allocated in the unmanaged part of that app (so not on the client app). //Instead this function will cause a buffer to be allocated on the client. //(forwarded form IClient) public static UnmanagedBuffer AllocateBuffer(uint size) { return(Allocator.DefAllocateBuffer(size)); }