Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateViewAccessor()

static IDisposable System.Reflection.Internal.MemoryMapLightUp.CreateViewAccessor ( object memoryMap,
long start,
int size )
inlinestaticpackage

Definition at line 16 of file MemoryMapLightUp.cs.

17 {
18 try
19 {
20 return ((MemoryMappedFile)memoryMap).CreateViewAccessor(start, size, MemoryMappedFileAccess.Read);
21 }
22 catch (UnauthorizedAccessException ex)
23 {
24 throw new IOException(ex.Message, ex);
25 }
26 }

References System.Exception.Message, and System.start.

Referenced by System.Reflection.Internal.StreamMemoryBlockProvider.TryCreateMemoryMappedFileBlock().