Table of Contents

Class BufferedEncoder

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

A class that allows encoding of data using a specific encoder to be processed in chunks.

public class BufferedEncoder
Inheritance
BufferedEncoder
Inherited Members

Constructors

BufferedEncoder(ITranslator, int)

Create.

public BufferedEncoder(ITranslator translator, int bufferSize)

Parameters

translator ITranslator

The translator to use.

bufferSize int

Size of the chunks.

Methods

ProcessByte(byte, byte[], int)

Process one byte of data.

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

Parameters

input byte

The byte.

outBytes byte[]

An array to store output in.

outOff int

Offset within output array to start writing from.

Returns

int

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[]

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.

Returns

int

The amount of data written.