C# Class SharpUV.File

Inheritance: IDisposable
Afficher le fichier Open project: gigi81/sharpuv

Méthodes publiques

Méthode Description
Close ( Action callback = null ) : void

Closes the stream. After this call the stream will not be valid

Dispose ( ) : void

Dispose the object freeing unmanaged resources allocated

File ( ) : System
File ( Loop loop ) : System
Open ( string path, FileAccessMode access, FileOpenMode mode, FilePermissions permissions, Action callback = null ) : void
OpenAppend ( string path, Action callback = null ) : void
OpenRead ( string path, Action callback = null ) : void
OpenWrite ( string path, Action callback = null ) : void
Read ( Action callback = null ) : void
Read ( uint length, Action callback = null ) : void

Read from the file

Write ( byte data, Action callback = null ) : void
Write ( byte data, int offset, int length, Action callback = null ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnClose ( UvArgs args ) : void
OnOpen ( UvArgs args ) : void
OnRead ( UvDataArgs args ) : void
OnWrite ( UvDataArgs args ) : void

Private Methods

Méthode Description
CheckError ( int code ) : void
CreateRequest ( ) : IntPtr
CreateRequest ( byte data, int offset, int length ) : IntPtr
CreateRequest ( uint length ) : IntPtr
FreeReadRequest ( IntPtr req ) : UvDataArgs
FreeRequest ( IntPtr req ) : Int32
InitDelegates ( ) : void
OnClose ( IntPtr req ) : void
OnOpen ( IntPtr req ) : void
OnRead ( IntPtr req ) : void
OnWrite ( IntPtr req ) : void
uv_fs_open ( Loop loop, IntPtr req, string path, FileAccessMode rw, FileOpenMode open, FilePermissions permissions, uv_fs_cb cb ) : int

Method Details

Close() public méthode

Closes the stream. After this call the stream will not be valid
public Close ( Action callback = null ) : void
callback Action
Résultat void

Dispose() public méthode

Dispose the object freeing unmanaged resources allocated
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

File() public méthode

public File ( ) : System
Résultat System

File() public méthode

public File ( Loop loop ) : System
loop Loop
Résultat System

OnClose() protected méthode

protected OnClose ( UvArgs args ) : void
args UvArgs
Résultat void

OnOpen() protected méthode

protected OnOpen ( UvArgs args ) : void
args UvArgs
Résultat void

OnRead() protected méthode

protected OnRead ( UvDataArgs args ) : void
args UvDataArgs
Résultat void

OnWrite() protected méthode

protected OnWrite ( UvDataArgs args ) : void
args UvDataArgs
Résultat void

Open() public méthode

public Open ( string path, FileAccessMode access, FileOpenMode mode, FilePermissions permissions, Action callback = null ) : void
path string
access FileAccessMode
mode FileOpenMode
permissions FilePermissions
callback Action
Résultat void

OpenAppend() public méthode

public OpenAppend ( string path, Action callback = null ) : void
path string
callback Action
Résultat void

OpenRead() public méthode

public OpenRead ( string path, Action callback = null ) : void
path string
callback Action
Résultat void

OpenWrite() public méthode

public OpenWrite ( string path, Action callback = null ) : void
path string
callback Action
Résultat void

Read() public méthode

public Read ( Action callback = null ) : void
callback Action
Résultat void

Read() public méthode

Read from the file
public Read ( uint length, Action callback = null ) : void
length uint
callback Action
Résultat void

Write() public méthode

public Write ( byte data, Action callback = null ) : void
data byte
callback Action
Résultat void

Write() public méthode

public Write ( byte data, int offset, int length, Action callback = null ) : void
data byte
offset int
length int
callback Action
Résultat void