Show / Hide Table of Contents

    Method HostToBigEndian

    HostToBigEndian(Int16)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static short HostToBigEndian(short value)
    Parameters
    Type Name Description
    Int16 value The value to convert in host byte-order.
    Returns
    Type Description
    Int16 Value converted to big-endian byte-order.

    HostToBigEndian(UInt16)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static ushort HostToBigEndian(ushort value)
    Parameters
    Type Name Description
    UInt16 value The value to convert in host byte-order.
    Returns
    Type Description
    UInt16 Value converted to big-endian byte-order.

    HostToBigEndian(Int32)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static int HostToBigEndian(int value)
    Parameters
    Type Name Description
    Int32 value The value to convert in host byte-order.
    Returns
    Type Description
    Int32 Value converted to big-endian byte-order.

    HostToBigEndian(UInt32)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static uint HostToBigEndian(uint value)
    Parameters
    Type Name Description
    UInt32 value The value to convert in host byte-order.
    Returns
    Type Description
    UInt32 Value converted to big-endian byte-order.

    HostToBigEndian(Int64)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static long HostToBigEndian(long value)
    Parameters
    Type Name Description
    Int64 value The value to convert in host byte-order.
    Returns
    Type Description
    Int64 Value converted to big-endian byte-order.

    HostToBigEndian(UInt64)

    Converts the byte-order of the provided value from host byte-order to big-endian byte-order.
    Declaration
    public static ulong HostToBigEndian(ulong value)
    Parameters
    Type Name Description
    UInt64 value The value to convert in host byte-order.
    Returns
    Type Description
    UInt64 Value converted to big-endian byte-order.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.