Table of Contents

Class BufferedDecoder

Namespace
Org.BouncyCastle.Utilities.Encoders
Assembly
BouncyCastle.Cryptography.dll

A buffering class to allow translation from one format to another to be done in discrete chunks.

public class BufferedDecoder
Inheritance
BufferedDecoder
Inherited Members

Constructors

BufferedDecoder(ITranslator, int)

Create a buffered Decoder.

public BufferedDecoder(ITranslator translator, int bufferSize)

Parameters

translator ITranslator

The translater to use.

bufferSize int

The size of the buffer.

Methods

ProcessByte(byte, byte[], int)

Process one byte of data.

public int ProcessByte(byte input, byte[] output, int outOff)

Parameters

input byte

Data in.

output byte[]

Byte array for the output.

outOff int

The offset in the output byte array to start writing from.

Returns

int

The amount of output bytes.

ProcessBytes(byte[], int, int, byte[], int)

Process data from a byte array.

public int ProcessBytes(byte[] input, int inOff, int len, byte[] outBytes, int outOff)

Parameters

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.

Returns

int

The amount of output bytes.