C# Class Org.BouncyCastle.Utilities.Encoders.BufferedDecoder

A buffering class to allow translation from one format to another to be done in discrete chunks.
Exibir arquivo Open project: nonorganic/dssnet

Public Methods

Method Description
BufferedDecoder ( ITranslator translator, int bufferSize ) : System

Create a buffered Decoder.

ProcessByte ( byte input, byte output, int outOff ) : int

Process one byte of data.

ProcessBytes ( byte input, int inOff, int len, byte outBytes, int outOff ) : int

Process data from a byte array.

Method Details

BufferedDecoder() public method

Create a buffered Decoder.
public BufferedDecoder ( ITranslator translator, int bufferSize ) : System
translator ITranslator The translater to use.
bufferSize int The size of the buffer.
return System

ProcessByte() public method

Process one byte of data.
public ProcessByte ( byte input, byte output, int outOff ) : int
input byte Data in.
output byte Byte array for the output.
outOff int The offset in the output byte array to start writing from.
return int

ProcessBytes() public method

Process data from a byte array.
public ProcessBytes ( byte input, int inOff, int len, byte outBytes, int outOff ) : int
input byte The input data.
inOff int Start position within input data array.
len int Amount of data to process from input data array.
outBytes byte Array to store output.
outOff int Position in output array to start writing from.
return int