IEncoding

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Defines a common interface for objects that can provide string encoding.

public interface IEncoding

Methods

Decode(string)

Decodes the given string to its byte representation.

byte[] Decode(string encoded)

Parameters

NameDescription

The encoded string.

Returns

NameDescription

The decoded string buffer.

Encode(byte[])

Encodes the given buffer.

string Encode(byte[] buffer)

Parameters

NameDescription

The buffer.

Returns

NameDescription

The encoded string.

IsValidChar(char)

Query if the given character is a valid for encoding.

bool IsValidChar(char value)

Parameters

NameDescription

The input character.

Returns

NameDescription

true if valid character, false if not.

Last updated