C# Class Manos.Http.HttpStream

Inheritance: System.IO.Stream, IDisposable
Afficher le fichier Open project: Hyperfair/manos Class Usage Examples

Méthodes publiques

Méthode Description
End ( ) : void
End ( System.Action callback ) : void
Flush ( ) : void
HttpStream ( Manos.Http.HttpEntity entity, Manos stream ) : System
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SendBufferedOps ( ) : void
SendFile ( string file_name ) : void
SendFinalChunk ( System.Action callback ) : void
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Private Methods

Méthode Description
EnsureMetadata ( ) : void
QueueBuffer ( ByteBuffer buffer ) : void
QueueFile ( string file ) : void
SendCallback ( System.Action callback ) : IEnumerable
SendChunk ( long l, bool last ) : void
SendFileData ( string fileName ) : void
SendFileImpl ( string fileName ) : void
Write ( byte buffer, int offset, int count, bool chunked ) : void
WriteMetadata ( ) : void

Method Details

End() public méthode

public End ( ) : void
Résultat void

End() public méthode

public End ( System.Action callback ) : void
callback System.Action
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

HttpStream() public méthode

public HttpStream ( Manos.Http.HttpEntity entity, Manos stream ) : System
entity Manos.Http.HttpEntity
stream Manos
Résultat System

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SendBufferedOps() public méthode

public SendBufferedOps ( ) : void
Résultat void

SendFile() public méthode

public SendFile ( string file_name ) : void
file_name string
Résultat void

SendFinalChunk() public méthode

public SendFinalChunk ( System.Action callback ) : void
callback System.Action
Résultat void

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void