IEncoding
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
Defines a common interface for objects that can provide string encoding.
public interface IEncodingMethods
Decode(string)
Decodes the given string to its byte representation.
byte[] Decode(string encoded)Parameters
Name
Description
encoded string
The encoded string.
Returns
Name
Description
byte[]
The decoded string buffer.
Encode(byte[])
Encodes the given buffer.
string Encode(byte[] buffer)Parameters
Name
Description
buffer byte[]
The buffer.
Returns
Name
Description
The encoded string.
IsValidChar(char)
Query if the given character is a valid for encoding.
bool IsValidChar(char value)Parameters
Name
Description
value char
The input character.
Returns
Name
Description
true if valid character, false if not.
Last updated