C# Class SharedMemory.MemMapFile

Afficher le fichier Open project: dzzie/pdfstreamdumper

Méthodes publiques

Свойство Type Description
DebugMode bool
ErrorMessage string

Méthodes publiques

Méthode Description
Close ( ) : void
CreateMemMapFile ( string fName, int mSize ) : bool
CreateSharedData ( byte data, string &memFileNameOut ) : bool
GetSharedData ( string memFileName, int fSize, byte bufOut ) : bool
ReadFile ( byte bData, int length ) : bool
WriteFile ( byte bData ) : bool

Private Methods

Méthode Description
CloseHandle ( int handle ) : bool
CreateFileMapping ( int hFile, int lpAttributes, int flProtect, int dwMaximumSizeLow, int dwMaximumSizeHigh, String lpName ) : int
FlushViewOfFile ( int lpBaseAddress, int dwNumBytesToFlush ) : bool
MapViewOfFile ( int hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumBytesToMap ) : uint
OpenFileMapping ( int dwDesiredAccess, bool bInheritHandle, String lpName ) : int
UnmapViewOfFile ( uint lpBaseAddress ) : bool
randomString ( int length ) : string

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

CreateMemMapFile() public méthode

public CreateMemMapFile ( string fName, int mSize ) : bool
fName string
mSize int
Résultat bool

CreateSharedData() public méthode

public CreateSharedData ( byte data, string &memFileNameOut ) : bool
data byte
memFileNameOut string
Résultat bool

GetSharedData() public méthode

public GetSharedData ( string memFileName, int fSize, byte bufOut ) : bool
memFileName string
fSize int
bufOut byte
Résultat bool

ReadFile() public méthode

public ReadFile ( byte bData, int length ) : bool
bData byte
length int
Résultat bool

WriteFile() public méthode

public WriteFile ( byte bData ) : bool
bData byte
Résultat bool

Property Details

DebugMode public_oe property

public bool DebugMode
Résultat bool

ErrorMessage public_oe property

public string ErrorMessage
Résultat string