internal static extern int FileTruncate(SharedMemorySafeHandle handle, long length);
private SharedMemoryMapView(IntPtr sharedMemoryFd, ulong sharedMemorySize) { sharedMemoryHandle = new SharedMemorySafeHandle(sharedMemoryFd); CreateMemoryMap(sharedMemorySize); }
internal static extern IntPtr MapMemory(IntPtr address, ulong length, ProtFlags protFlags, MapFlags mapFlags, SharedMemorySafeHandle handle, long offset);