C# Class Microsoft.Azure.Amqp.BufferListStream

Inheritance: Stream, ICloneable
Mostrar archivo Open project: Azure/azure-amqp Class Usage Examples

Public Methods

Method Description
BufferListStream ( IList arraySegments ) : System
Clone ( ) : object
Create ( Stream stream, int segmentSize ) : BufferListStream
Create ( Stream stream, int segmentSize, bool forceCopyStream ) : BufferListStream
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadBuffers ( int count, bool advance, bool &more ) : ArraySegment[]
ReadByte ( ) : int
ReadBytes ( int count ) : ArraySegment
ReadStream ( Stream stream, int segmentSize, int &length ) : ArraySegment[]
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Advance ( int count, int segmentCount ) : void
SetPosition ( long pos ) : void
ThrowIfDisposed ( ) : void

Method Details

BufferListStream() public method

public BufferListStream ( IList arraySegments ) : System
arraySegments IList
return System

Clone() public method

public Clone ( ) : object
return object

Create() public static method

public static Create ( Stream stream, int segmentSize ) : BufferListStream
stream Stream
segmentSize int
return BufferListStream

Create() public static method

public static Create ( Stream stream, int segmentSize, bool forceCopyStream ) : BufferListStream
stream Stream
segmentSize int
forceCopyStream bool
return BufferListStream

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

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

ReadBuffers() public method

public ReadBuffers ( int count, bool advance, bool &more ) : ArraySegment[]
count int
advance bool
more bool
return ArraySegment[]

ReadByte() public method

public ReadByte ( ) : int
return int

ReadBytes() public method

public ReadBytes ( int count ) : ArraySegment
count int
return ArraySegment

ReadStream() public static method

public static ReadStream ( Stream stream, int segmentSize, int &length ) : ArraySegment[]
stream Stream
segmentSize int
length int
return ArraySegment[]

Seek() public method

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

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