C# Class NContrib.Endian

Exibir arquivo Open project: veracross/ncontrib

Public Methods

Method Description
Swap ( this word ) : uint

Byte-swaps a UInt32

Swap ( this word ) : ulong

Swaps the byte order of a UInt64

Swap ( this word ) : ushort

Byte-swaps a UInt16

Method Details

Swap() public static method

Byte-swaps a UInt32
public static Swap ( this word ) : uint
word this to swap the byte-order of.
return uint

Swap() public static method

Swaps the byte order of a UInt64
public static Swap ( this word ) : ulong
word this to swap the byte order of.
return ulong

Swap() public static method

Byte-swaps a UInt16
public static Swap ( this word ) : ushort
word this to swap the byte order of.
return ushort