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
translatorITranslatorThe translator to use.
bufferSizeintSize of the chunks.
Methods
ProcessByte(byte, byte[], int)
Process one byte of data.
public int ProcessByte(byte input, byte[] outBytes, int outOff)
Parameters
inputbyteThe byte.
outBytesbyte[]An array to store output in.
outOffintOffset within output array to start writing from.
Returns
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
inputbyte[]Input data Byte array containing data to be processed.
inOffintStart position within input data array.
lenintAmount of input data to be processed.
outBytesbyte[]Output data array.
outOffintOffset within output data array to start writing to.
Returns
- int
The amount of data written.