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

Afficher le fichier Open project: TinkerWorX/SharpCraft Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static GetFileSize ( IntPtr handle ) : int
handle System.IntPtr
Résultat int

GetFileSizeLong() public static méthode

public static GetFileSizeLong ( IntPtr handle ) : long
handle System.IntPtr
Résultat long

OpenFileEx() public static méthode

public static OpenFileEx ( IntPtr handle, string filename, uint mode ) : IntPtr
handle System.IntPtr
filename string
mode uint
Résultat System.IntPtr

ReadFile() public static méthode

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
Résultat int

ReadFileToEnd() public static méthode

public static ReadFileToEnd ( IntPtr handle ) : byte[]
handle System.IntPtr
Résultat byte[]

SetFilePointer() public static méthode

public static SetFilePointer ( IntPtr handle, int filePosition, SeekOrigin moveMethod ) : int
handle System.IntPtr
filePosition int
moveMethod SeekOrigin
Résultat int

SetFilePointer() public static méthode

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

SetFilePointer() public static méthode

public static SetFilePointer ( IntPtr handle, int filePosition, uint moveMethod ) : int
handle System.IntPtr
filePosition int
moveMethod uint
Résultat int

SetFilePointerLong() public static méthode

public static SetFilePointerLong ( IntPtr handle, long filePosition, SeekOrigin moveMethod ) : long
handle System.IntPtr
filePosition long
moveMethod SeekOrigin
Résultat long

SetFilePointerLong() public static méthode

public static SetFilePointerLong ( IntPtr handle, long filePosition, uint moveMethod ) : long
handle System.IntPtr
filePosition long
moveMethod uint
Résultat long