C# Class TinkerWorX.SharpCraft.Blizzard.Storm.SFile

Mostrar archivo Open project: TinkerWorX/SharpCraft Class Usage Examples

Public Methods

Method Description
GetFileSize ( IntPtr handle ) : int
GetFileSizeLong ( IntPtr handle ) : long
OpenFileEx ( IntPtr handle, string filename, uint mode ) : IntPtr
ReadFile ( IntPtr handle, byte buffer, int numberOfBytesToRead, int &numberOfBytesRead, int distanceToMoveHigh ) : int
ReadFileToEnd ( IntPtr handle ) : byte[]
SetFilePointer ( IntPtr handle, int filePosition, SeekOrigin moveMethod ) : int
SetFilePointer ( IntPtr handle, int filePosition, int &filePositionHigh, SeekOrigin moveMethod ) : int
SetFilePointer ( IntPtr handle, int filePosition, uint moveMethod ) : int
SetFilePointerLong ( IntPtr handle, long filePosition, SeekOrigin moveMethod ) : long
SetFilePointerLong ( IntPtr handle, long filePosition, uint moveMethod ) : long

Private Methods

Method Description
CloseFile ( IntPtr handle ) : bool
GetFileSize ( IntPtr handle, int &fileSizeHigh ) : int
OpenFileEx ( IntPtr handle, string filename, uint mode, IntPtr &result ) : bool
ReadFile ( IntPtr handle, IntPtr buffer, int numberOfBytesToRead, int &numberOfBytesRead, int distanceToMoveHigh ) : int
SFile ( ) : System
SetFilePointer ( IntPtr handle, int filePosition, int &filePositionHigh, uint moveMethod ) : int

Method Details

GetFileSize() public static method

public static GetFileSize ( IntPtr handle ) : int
handle System.IntPtr
return int

GetFileSizeLong() public static method

public static GetFileSizeLong ( IntPtr handle ) : long
handle System.IntPtr
return long

OpenFileEx() public static method

public static OpenFileEx ( IntPtr handle, string filename, uint mode ) : IntPtr
handle System.IntPtr
filename string
mode uint
return System.IntPtr

ReadFile() public static method

public static ReadFile ( IntPtr handle, byte buffer, int numberOfBytesToRead, int &numberOfBytesRead, int distanceToMoveHigh ) : int
handle System.IntPtr
buffer byte
numberOfBytesToRead int
numberOfBytesRead int
distanceToMoveHigh int
return int

ReadFileToEnd() public static method

public static ReadFileToEnd ( IntPtr handle ) : byte[]
handle System.IntPtr
return byte[]

SetFilePointer() public static method

public static SetFilePointer ( IntPtr handle, int filePosition, SeekOrigin moveMethod ) : int
handle System.IntPtr
filePosition int
moveMethod SeekOrigin
return int

SetFilePointer() public static method

public static SetFilePointer ( IntPtr handle, int filePosition, int &filePositionHigh, SeekOrigin moveMethod ) : int
handle System.IntPtr
filePosition int
filePositionHigh int
moveMethod SeekOrigin
return int

SetFilePointer() public static method

public static SetFilePointer ( IntPtr handle, int filePosition, uint moveMethod ) : int
handle System.IntPtr
filePosition int
moveMethod uint
return int

SetFilePointerLong() public static method

public static SetFilePointerLong ( IntPtr handle, long filePosition, SeekOrigin moveMethod ) : long
handle System.IntPtr
filePosition long
moveMethod SeekOrigin
return long

SetFilePointerLong() public static method

public static SetFilePointerLong ( IntPtr handle, long filePosition, uint moveMethod ) : long
handle System.IntPtr
filePosition long
moveMethod uint
return long