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

A class that allows encoding of data using a specific encoder to be processed in chunks.
Mostrar archivo Open project: nonorganic/dssnet

Public Methods

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

Create.

ProcessByte ( byte input, byte outBytes, 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

BufferedEncoder() public method

Create.
public BufferedEncoder ( ITranslator translator, int bufferSize ) : System
translator ITranslator The translator to use.
bufferSize int Size of the chunks.
return System

ProcessByte() public method

Process one byte of data.
public ProcessByte ( byte input, byte outBytes, int outOff ) : int
input byte The byte.
outBytes byte An array to store output in.
outOff int Offset within output 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 Input data Byte array containing data to be processed.
inOff int Start position within input data array.
len int Amount of input data to be processed.
outBytes byte Output data array.
outOff int Offset within output data array to start writing to.
return int