IConverter interface | QSYS API Reference Guide

Estimated reading time: 3 minutes

Defines functionality to perform conversions between EBCDIC and Unicode.

Namespace: ASNA.QSys.Runtime.JobSupport Assembly: ASNA.QSys.Runtime.dll

Extends: doesn’t extend any other interfaces.

Methods

Signature Description
EbcdicToUnicode(Byte[]) Converts EBCDIC characters in an array to Unicode.
EbcdicToUnicode(Byte[], Int32, Int32) Converts a portion of an array’s EBCDIC characters to Unicode.
UnicodeToEbcdic(String) Converts a unicode string to the corresponding bytes of the equivalent string in EBCDIC.
UnicodeToEbcdic(String, Int32, Int32, Byte[], Int32) Converts a unicode substring to the corresponding bytes of the equivalent string in EBCDIC.

string EbcdicToUnicode(Byte[] source)

Converts EBCDIC characters in an array to Unicode.

string EbcdicToUnicode(Byte[] source)

Parameters

Type Parameter name Description
Byte[] source An array of bytes encoding the EBCDIC characters.

Returns

Type Description
String The Unicode string.

string EbcdicToUnicode(Byte[] source, int offset, int length)

Converts a portion of an array’s EBCDIC characters to Unicode.

string EbcdicToUnicode(Byte[] source, int offset, int length)

Parameters

Type Parameter name Description
Byte[] source An array of bytes encoding the EBCDIC characters.
Int32 offset The zero based offset into the first byte to decode.
Int32 length Number of bytes to decode.

Returns

Type Description
String The Unicode string.

Byte[] UnicodeToEbcdic(string source)

Converts a unicode string to the corresponding bytes of the equivalent string in EBCDIC.

Byte[] UnicodeToEbcdic(string source)

Parameters

Type Parameter name Description
String source The unicode string to convert.

Returns

Type Description
Byte[] The array of bytes holding the EBCDIC representation.

void UnicodeToEbcdic(string source, int charIndex, int charCount, Byte[] bytes, int byteIndex)

Converts a unicode substring to the corresponding bytes of the equivalent string in EBCDIC.

void UnicodeToEbcdic(string source, int charIndex, int charCount, Byte[] bytes, int byteIndex)

Parameters

Type Parameter name Description
String source The unicode string to convert.
Int32 charIndex The zero based index to the first character in the unicode string to convert.
Int32 charCount The number of unicode characters to convert.
Byte[] bytes The array to receive the bytes of the EBCDIC representation.
Int32 byteIndex The zero based index into the byte array to recevie the EBCDIC representation.