C# Class System.Runtime.Serialization.Plists.EndianConverter

ファイルを表示 Open project: ChadBurggraf/plists-cs

Public Methods

Method Description
SwapEndian ( this value ) : int

Swaps the endian-ness of the given value.

SwapEndian ( this value ) : long

Swaps the endian-ness of the given value.

SwapEndian ( this value ) : short

Swaps the endian-ness of the given value.

SwapEndian ( this value ) : uint

Swaps the endian-ness of the given value.

SwapEndian ( this value ) : ulong

Swaps the endian-ness of the given value.

SwapEndian ( this value ) : ushort

Swaps the endian-ness of the given value.

SwapInt16 ( short value ) : short

Swaps the endian-ness of the given value.

SwapInt32 ( int value ) : int

Swaps the endian-ness of the given value.

SwapInt64 ( long value ) : long

Swaps the endian-ness of the given value.

SwapUInt16 ( ushort value ) : ushort

Swaps the endian-ness of the given value.

SwapUInt32 ( uint value ) : uint

Swaps the endian-ness of the given value.

SwapUInt64 ( ulong value ) : ulong

Swaps the endian-ness of the given value.

ToBigEndianConditional ( this value ) : int

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToBigEndianConditional ( this value ) : long

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToBigEndianConditional ( this value ) : short

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToBigEndianConditional ( this value ) : uint

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToBigEndianConditional ( this value ) : ulong

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToBigEndianConditional ( this value ) : ushort

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : int

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : long

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : short

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : uint

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : ulong

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

ToLittleEndianConditional ( this value ) : ushort

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.

Method Details

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : int
value this The value to swap the endian-ness of.
return int

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : long
value this The value to swap the endian-ness of.
return long

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : short
value this The value to swap the endian-ness of.
return short

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : uint
value this The value to swap the endian-ness of.
return uint

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : ulong
value this The value to swap the endian-ness of.
return ulong

SwapEndian() public static method

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : ushort
value this The value to swap the endian-ness of.
return ushort

SwapInt16() public static method

Swaps the endian-ness of the given value.
public static SwapInt16 ( short value ) : short
value short The value to swap the endian-ness of.
return short

SwapInt32() public static method

Swaps the endian-ness of the given value.
public static SwapInt32 ( int value ) : int
value int The value to swap the endian-ness of.
return int

SwapInt64() public static method

Swaps the endian-ness of the given value.
public static SwapInt64 ( long value ) : long
value long The value to swap the endian-ness of.
return long

SwapUInt16() public static method

Swaps the endian-ness of the given value.
public static SwapUInt16 ( ushort value ) : ushort
value ushort The value to swap the endian-ness of.
return ushort

SwapUInt32() public static method

Swaps the endian-ness of the given value.
public static SwapUInt32 ( uint value ) : uint
value uint The value to swap the endian-ness of.
return uint

SwapUInt64() public static method

Swaps the endian-ness of the given value.
public static SwapUInt64 ( ulong value ) : ulong
value ulong The value to swap the endian-ness of.
return ulong

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : int
value this The value to swap if necessary.
return int

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : long
value this The value to swap if necessary.
return long

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : short
value this The value to swap if necessary.
return short

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : uint
value this The value to swap if necessary.
return uint

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : ulong
value this The value to swap if necessary.
return ulong

ToBigEndianConditional() public static method

Gets the big-endian value of the given value if the current system is little-endian. If the current system is big-endian, returns the value as-is.
public static ToBigEndianConditional ( this value ) : ushort
value this The value to swap if necessary.
return ushort

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : int
value this The value to swap if necessary.
return int

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : long
value this The value to swap if necessary.
return long

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : short
value this The value to swap if necessary.
return short

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : uint
value this The value to swap if necessary.
return uint

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : ulong
value this The value to swap if necessary.
return ulong

ToLittleEndianConditional() public static method

Gets the little-endian value of the given value if the current system is big-endian. If the current system is little-endian, returns the value as-is.
public static ToLittleEndianConditional ( this value ) : ushort
value this The value to swap if necessary.
return ushort