UnicodeStream

Description

struct CodeX.UnicodeStream
<TInput val : ICharSetTrait>
<TOutput val : ICharSetTrait>

A stream that converts code units between encodings.

Public / Methods

Input


public method Input → (1)

codeUnit in : int32

The input code unit or negative to flush.

Adds an input code unit.

Output


public method Output → ()

returns → int32

The output code unit or -1 if none.

Fetches an output code unit.

Reset


public method Reset → ()

Resets the stream state.

Public / Attributes

Bytes​Per​Input​Code​Unit


public attribute BytesPerInputCodeUnit → (get)

value : int32

The number of bytes per input code unit, see ICharSetTrait.BytesPerCodeUnit.

Returns the number of bytes per input code unit.

Bytes​Per​Output​Code​Unit


public attribute BytesPerOutputCodeUnit → (get)

value : int32

The number of bytes per output code unit, see ICharSetTrait.BytesPerCodeUnit.

Returns the number of bytes per output code unit.