C# Class Manos.Http.HttpStream

Inheritance: System.IO.Stream, IDisposable
Mostra file Open project: Hyperfair/manos Class Usage Examples

Public Methods

Method 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

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

public End ( ) : void
return void

End() public method

public End ( System.Action callback ) : void
callback System.Action
return void

Flush() public method

public Flush ( ) : void
return void

HttpStream() public method

public HttpStream ( Manos.Http.HttpEntity entity, Manos stream ) : System
entity Manos.Http.HttpEntity
stream Manos
return System

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SendBufferedOps() public method

public SendBufferedOps ( ) : void
return void

SendFile() public method

public SendFile ( string file_name ) : void
file_name string
return void

SendFinalChunk() public method

public SendFinalChunk ( System.Action callback ) : void
callback System.Action
return void

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void