C# Class Microsoft.Http.StreamExtensions

Show file Open project: o2platform/O2.Platform.Projects

Public Methods

Method Description
ConsumeAllBytesAndClose ( this stream ) : long
CopyAndCloseSource ( this source, Stream destination, long size ) : long
CopyStreamTo ( this source, Stream destination ) : void
ReadAllBytes ( this source ) : byte[]
ReadAllBytes ( this source, long length ) : byte[]

Method Details

ConsumeAllBytesAndClose() public static method

public static ConsumeAllBytesAndClose ( this stream ) : long
stream this
return long

CopyAndCloseSource() public static method

public static CopyAndCloseSource ( this source, Stream destination, long size ) : long
source this
destination Stream
size long
return long

CopyStreamTo() public static method

public static CopyStreamTo ( this source, Stream destination ) : void
source this
destination Stream
return void

ReadAllBytes() public static method

public static ReadAllBytes ( this source ) : byte[]
source this
return byte[]

ReadAllBytes() public static method

public static ReadAllBytes ( this source, long length ) : byte[]
source this
length long
return byte[]