C# Class Org.BouncyCastle.Utilities.IO.Streams

Mostrar archivo Open project: nonorganic/dssnet

Public Methods

Method Description
Drain ( Stream inStr ) : void
PipeAll ( Stream inStr, Stream outStr ) : void
PipeAllLimited ( Stream inStr, long limit, Stream outStr ) : long

Pipe all bytes from inStr to outStr, throwing StreamFlowException if greater than limit bytes in inStr.

ReadAll ( Stream inStr ) : byte[]
ReadAllLimited ( Stream inStr, int limit ) : byte[]
ReadFully ( Stream inStr, byte buf ) : int
ReadFully ( Stream inStr, byte buf, int off, int len ) : int

Private Methods

Method Description
Streams ( ) : System

Method Details

Drain() public static method

public static Drain ( Stream inStr ) : void
inStr Stream
return void

PipeAll() public static method

public static PipeAll ( Stream inStr, Stream outStr ) : void
inStr Stream
outStr Stream
return void

PipeAllLimited() public static method

Pipe all bytes from inStr to outStr, throwing StreamFlowException if greater than limit bytes in inStr.
public static PipeAllLimited ( Stream inStr, long limit, Stream outStr ) : long
inStr Stream /// A ///
limit long /// A ///
outStr Stream /// A ///
return long

ReadAll() public static method

public static ReadAll ( Stream inStr ) : byte[]
inStr Stream
return byte[]

ReadAllLimited() public static method

public static ReadAllLimited ( Stream inStr, int limit ) : byte[]
inStr Stream
limit int
return byte[]

ReadFully() public static method

public static ReadFully ( Stream inStr, byte buf ) : int
inStr Stream
buf byte
return int

ReadFully() public static method

public static ReadFully ( Stream inStr, byte buf, int off, int len ) : int
inStr Stream
buf byte
off int
len int
return int