C# Класс System.Runtime.Serialization.Plists.EndianConverter

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : int
value this The value to swap the endian-ness of.
Результат int

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : long
value this The value to swap the endian-ness of.
Результат long

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : short
value this The value to swap the endian-ness of.
Результат short

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : uint
value this The value to swap the endian-ness of.
Результат uint

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : ulong
value this The value to swap the endian-ness of.
Результат ulong

SwapEndian() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapEndian ( this value ) : ushort
value this The value to swap the endian-ness of.
Результат ushort

SwapInt16() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapInt16 ( short value ) : short
value short The value to swap the endian-ness of.
Результат short

SwapInt32() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapInt32 ( int value ) : int
value int The value to swap the endian-ness of.
Результат int

SwapInt64() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapInt64 ( long value ) : long
value long The value to swap the endian-ness of.
Результат long

SwapUInt16() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapUInt16 ( ushort value ) : ushort
value ushort The value to swap the endian-ness of.
Результат ushort

SwapUInt32() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapUInt32 ( uint value ) : uint
value uint The value to swap the endian-ness of.
Результат uint

SwapUInt64() публичный статический Метод

Swaps the endian-ness of the given value.
public static SwapUInt64 ( ulong value ) : ulong
value ulong The value to swap the endian-ness of.
Результат ulong

ToBigEndianConditional() публичный статический Метод

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.
Результат int

ToBigEndianConditional() публичный статический Метод

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.
Результат long

ToBigEndianConditional() публичный статический Метод

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.
Результат short

ToBigEndianConditional() публичный статический Метод

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.
Результат uint

ToBigEndianConditional() публичный статический Метод

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.
Результат ulong

ToBigEndianConditional() публичный статический Метод

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.
Результат ushort

ToLittleEndianConditional() публичный статический Метод

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.
Результат int

ToLittleEndianConditional() публичный статический Метод

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.
Результат long

ToLittleEndianConditional() публичный статический Метод

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.
Результат short

ToLittleEndianConditional() публичный статический Метод

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.
Результат uint

ToLittleEndianConditional() публичный статический Метод

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.
Результат ulong

ToLittleEndianConditional() публичный статический Метод

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.
Результат ushort