Table of Contents

Class StringEncoder

Namespace
Moffat.EndlessOnline.SDK.Data
Assembly
Moffat.EndlessOnline.SDK.dll

Provides utility methods for encoding and decoding EO strings.

public static class StringEncoder
Inheritance
StringEncoder
Inherited Members

Properties

Encoding

The encoding to use for reading/writing EO strings. This is set to an encoding representing the Windows-1252 code page.

public static Encoding Encoding { get; }

Property Value

Encoding

Methods

DecodeString(byte[])

Decodes a string by reversing the bytes and then inverting them.

public static byte[] DecodeString(byte[] bytes)

Parameters

bytes byte[]

The byte array to decode.

Returns

byte[]

The decoded string

EncodeString(byte[])

Encodes a string by inverting the bytes and then reversing them.

public static byte[] EncodeString(byte[] bytes)

Parameters

bytes byte[]

The byte array to encode.

Returns

byte[]

The encoded string