Show / Hide Table of Contents

    Method ToByteArray

    ToByteArray()

    Returns a 16-element byte array that contains the UUID in little-endian byte order. The byte-order is identical to the byte array returned by ToByteArray() for drop-in compatibility. If interoperability with other platforms is required, network byte order should be used for transmission and storage of UUIDs, which is achieved by instead using ToByteArray(ByteOrder) with the BigEndian argument.
    Declaration
    public byte[] ToByteArray()
    Returns
    Type Description
    Byte[] A 16-element byte array that contains the UUID in little-endian byte order.

    ToByteArray(ByteOrder)

    Returns a 16-element byte array that contains the UUID.
    Declaration
    public byte[] ToByteArray(ByteOrder order)
    Parameters
    Type Name Description
    ByteOrder order The requested byte-order of the first three data fields (32-bit, 16-bit and 16-bit, repectively) that are stored by the first 8 bytes in the returned array. For interoperability with other systems and to comply with RFC 4122, use BigEndian to transmit and store UUIDs. The default byte order used by Guid is LittleEndian.
    Returns
    Type Description
    Byte[] A 16-element byte array that contains the UUID in the requested byte-order.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.