C# 클래스 System.IO.MemoryMappedFiles.MemoryMappedFile

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
CreateFromFile ( System fileStream, string mapName, long capacity, System access, System inheritability, bool leaveOpen ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateFromFile ( string path ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateFromFile ( string path, System mode ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateFromFile ( string path, System mode, string mapName ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateFromFile ( string path, System mode, string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateFromFile ( string path, System mode, string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateNew ( string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateNew ( string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateNew ( string mapName, long capacity, System access, System options, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateOrOpen ( string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateOrOpen ( string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateOrOpen ( string mapName, long capacity, System access, System options, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile
CreateViewAccessor ( ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
CreateViewAccessor ( long offset, long size ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
CreateViewAccessor ( long offset, long size, System access ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
CreateViewStream ( ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
CreateViewStream ( long offset, long size ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
CreateViewStream ( long offset, long size, System access ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
Dispose ( ) : void
OpenExisting ( string mapName ) : System.IO.MemoryMappedFiles.MemoryMappedFile
OpenExisting ( string mapName, System desiredAccessRights ) : System.IO.MemoryMappedFiles.MemoryMappedFile
OpenExisting ( string mapName, System desiredAccessRights, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
CreateCore ( FileStream fileStream, string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, MemoryMappedFileOptions options, long capacity ) : SafeMemoryMappedFileHandle
CreateOrOpenCore ( string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, MemoryMappedFileOptions options, long capacity ) : SafeMemoryMappedFileHandle
GetFileMapAccess ( MemoryMappedFileAccess access ) : int

This converts a MemoryMappedFileAccess to its corresponding native FILE_MAP_XXX value to be used when creating new views.

GetFileMapAccess ( MemoryMappedFileRights rights ) : int

This converts a MemoryMappedFileRights to its corresponding native FILE_MAP_XXX value to be used when creating new views.

GetPageAccess ( MemoryMappedFileAccess access ) : int

This converts a MemoryMappedFileAccess to it's corresponding native PAGE_XXX value to be used by the factory methods that construct a new memory mapped file object. MemoryMappedFileAccess.Write is not valid here since there is no corresponding PAGE_XXX value.

GetSecAttrs ( HandleInheritability inheritability ) : Interop.Kernel32.SECURITY_ATTRIBUTES
MemoryMappedFile ( )
OpenCore ( string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, bool createOrOpen ) : SafeMemoryMappedFileHandle

Used by the OpenExisting factory method group and by CreateOrOpen if access is write. We'll throw an ArgumentException if the file mapping object didn't exist and the caller used CreateOrOpen since Create isn't valid with Write access

OpenCore ( string mapName, HandleInheritability inheritability, MemoryMappedFileRights rights, bool createOrOpen ) : SafeMemoryMappedFileHandle

Used by the OpenExisting factory method group and by CreateOrOpen if access is write. We'll throw an ArgumentException if the file mapping object didn't exist and the caller used CreateOrOpen since Create isn't valid with Write access

OpenCore ( string mapName, HandleInheritability inheritability, int desiredAccessRights, bool createOrOpen ) : SafeMemoryMappedFileHandle
ThreadSleep ( int milliseconds ) : void

Replacement for Thread.Sleep(milliseconds), which isn't available.

메소드 상세

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( System fileStream, string mapName, long capacity, System access, System inheritability, bool leaveOpen ) : System.IO.MemoryMappedFiles.MemoryMappedFile
fileStream System
mapName string
capacity long
access System
inheritability System
leaveOpen bool
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string path ) : System.IO.MemoryMappedFiles.MemoryMappedFile
path string
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string path, System mode ) : System.IO.MemoryMappedFiles.MemoryMappedFile
path string
mode System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string path, System mode, string mapName ) : System.IO.MemoryMappedFiles.MemoryMappedFile
path string
mode System
mapName string
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string path, System mode, string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
path string
mode System
mapName string
capacity long
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string path, System mode, string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
path string
mode System
mapName string
capacity long
access System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateNew() 공개 정적인 메소드

public static CreateNew ( string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateNew() 공개 정적인 메소드

public static CreateNew ( string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
access System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateNew() 공개 정적인 메소드

public static CreateNew ( string mapName, long capacity, System access, System options, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
access System
options System
inheritability System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateOrOpen() 공개 정적인 메소드

public static CreateOrOpen ( string mapName, long capacity ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateOrOpen() 공개 정적인 메소드

public static CreateOrOpen ( string mapName, long capacity, System access ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
access System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateOrOpen() 공개 정적인 메소드

public static CreateOrOpen ( string mapName, long capacity, System access, System options, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
capacity long
access System
options System
inheritability System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

CreateViewAccessor() 공개 메소드

public CreateViewAccessor ( ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

CreateViewAccessor() 공개 메소드

public CreateViewAccessor ( long offset, long size ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
offset long
size long
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

CreateViewAccessor() 공개 메소드

public CreateViewAccessor ( long offset, long size, System access ) : System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
offset long
size long
access System
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

CreateViewStream() 공개 메소드

public CreateViewStream ( ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewStream

CreateViewStream() 공개 메소드

public CreateViewStream ( long offset, long size ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
offset long
size long
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewStream

CreateViewStream() 공개 메소드

public CreateViewStream ( long offset, long size, System access ) : System.IO.MemoryMappedFiles.MemoryMappedViewStream
offset long
size long
access System
리턴 System.IO.MemoryMappedFiles.MemoryMappedViewStream

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

OpenExisting() 공개 정적인 메소드

public static OpenExisting ( string mapName ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

OpenExisting() 공개 정적인 메소드

public static OpenExisting ( string mapName, System desiredAccessRights ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
desiredAccessRights System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile

OpenExisting() 공개 정적인 메소드

public static OpenExisting ( string mapName, System desiredAccessRights, System inheritability ) : System.IO.MemoryMappedFiles.MemoryMappedFile
mapName string
desiredAccessRights System
inheritability System
리턴 System.IO.MemoryMappedFiles.MemoryMappedFile