C# Class ExtensionMethods.StringExtensions

Show file Open project: mono/mooncodecs

Public Methods

Method Description
ToLittleEndian ( this value ) : string

Converts a string of characters from Big Endian byte order to Little Endian byte order.

Assumptions this makes about the string. Every two characters make up the smallest data unit (analogous to byte). The entire string is the size of the systems natural unit of data (analogous to a word).

This function was designed to take in a Big Endian string of hexadecimal digits. input: DEADBEEF output: EFBEADDE

Method Details

ToLittleEndian() public static method

Converts a string of characters from Big Endian byte order to Little Endian byte order.

Assumptions this makes about the string. Every two characters make up the smallest data unit (analogous to byte). The entire string is the size of the systems natural unit of data (analogous to a word).

This function was designed to take in a Big Endian string of hexadecimal digits. input: DEADBEEF output: EFBEADDE
public static ToLittleEndian ( this value ) : string
value this /// A string in Big Endian Byte order. ///
return string