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
translatorITranslatorThe translater to use.
bufferSizeintThe size of the buffer.
Methods
ProcessByte(byte, byte[], int)
Process one byte of data.
public int ProcessByte(byte input, byte[] output, int outOff)
Parameters
inputbyteData in.
outputbyte[]Byte array for the output.
outOffintThe 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
inputbyte[]The input data.
inOffintStart position within input data array.
lenintAmount of data to process from input data array.
outBytesbyte[]Array to store output.
outOffintPosition in output array to start writing from.
Returns
- int
The amount of output bytes.