Table of Contents

Class HexTranslator

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

A hex translator.

public class HexTranslator : ITranslator
Inheritance
HexTranslator
Implements
Inherited Members

Methods

Decode(byte[], int, int, byte[], int)

Decode data from a byte array.

public int Decode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)

Parameters

input byte[]

The input data array.

inOff int

Start position within input data array.

length int

The amounty of data to process.

outBytes byte[]

The output data array.

outOff int

The position within the output data array to start writing from.

Returns

int

The amount of data written.

Encode(byte[], int, int, byte[], int)

Encode some data.

public int Encode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)

Parameters

input byte[]

Input data array.

inOff int

Start position within input data array.

length int

The amount of data to process.

outBytes byte[]

The output data array.

outOff int

The offset within the output data array to start writing from.

Returns

int

Amount of data encoded.

GetDecodedBlockSize()

Returns the decoded block size.

public int GetDecodedBlockSize()

Returns

int

1

GetEncodedBlockSize()

Return encoded block size.

public int GetEncodedBlockSize()

Returns

int

2