C# Class SharedMemory.MemMapFile

显示文件 Open project: dzzie/pdfstreamdumper

Public Properties

Property Type Description
DebugMode bool
ErrorMessage string

Public Methods

Method 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

Method 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 method

public Close ( ) : void
return void

CreateMemMapFile() public method

public CreateMemMapFile ( string fName, int mSize ) : bool
fName string
mSize int
return bool

CreateSharedData() public method

public CreateSharedData ( byte data, string &memFileNameOut ) : bool
data byte
memFileNameOut string
return bool

GetSharedData() public method

public GetSharedData ( string memFileName, int fSize, byte bufOut ) : bool
memFileName string
fSize int
bufOut byte
return bool

ReadFile() public method

public ReadFile ( byte bData, int length ) : bool
bData byte
length int
return bool

WriteFile() public method

public WriteFile ( byte bData ) : bool
bData byte
return bool

Property Details

DebugMode public_oe property

public bool DebugMode
return bool

ErrorMessage public_oe property

public string ErrorMessage
return string