C# Class GSF.GuidExtensions

Extension methods for Guid.
Mostrar archivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
CopyLittleEndianBytes ( System.Guid guid, byte buffer ) : int

Writes a Guid in Little Endian byte order.

ToRfcBytes ( this guid ) : byte[]

Encodes a Guid following RFC 4122.

ToRfcBytes ( this guid, byte buffer ) : int

Encodes a Guid following RFC 4122.

ToRfcBytes ( this guid, byte buffer, int startingIndex ) : int

Encodes a Guid following RFC 4122.

ToRfcGuid ( byte buffer ) : System.Guid

Decodes a Guid following RFC 4122

ToRfcGuid ( this buffer ) : System.Guid

Decodes a Guid following RFC 4122

ToRfcGuid ( this buffer, int startingIndex ) : System.Guid

Decodes a Guid following RFC 4122

Private Methods

Method Description
CopyLittleEndianBytes ( System.Guid guid, byte buffer, int startingIndex ) : int
ToLittleEndianBytes ( System.Guid guid ) : byte[]
ToLittleEndianGuid ( byte buffer ) : System.Guid
ToLittleEndianGuid ( byte buffer, int startingIndex ) : System.Guid
__ToBigEndianOrderBytes ( System.Guid guid ) : byte[]
__ToBigEndianOrderBytes ( System.Guid guid, byte buffer, int startingIndex ) : int
__ToBigEndianOrderGuid ( byte buffer ) : System.Guid
__ToBigEndianOrderGuid ( byte buffer, int startingIndex ) : System.Guid

Method Details

CopyLittleEndianBytes() public static method

Writes a Guid in Little Endian byte order.
public static CopyLittleEndianBytes ( System.Guid guid, byte buffer ) : int
guid System.Guid the to serialize
buffer byte where to store the
return int

ToRfcBytes() public static method

Encodes a Guid following RFC 4122.
public static ToRfcBytes ( this guid ) : byte[]
guid this to serialize.
return byte[]

ToRfcBytes() public static method

Encodes a Guid following RFC 4122.
public static ToRfcBytes ( this guid, byte buffer ) : int
guid this The to serialize.
buffer byte Destination buffer to hold serialized .
return int

ToRfcBytes() public static method

Encodes a Guid following RFC 4122.
public static ToRfcBytes ( this guid, byte buffer, int startingIndex ) : int
guid this The to serialize.
buffer byte Destination buffer to hold serialized .
startingIndex int Starting index in .
return int

ToRfcGuid() public static method

Decodes a Guid following RFC 4122
public static ToRfcGuid ( byte buffer ) : System.Guid
buffer byte Buffer containing a serialized big-endian encoded .
return System.Guid

ToRfcGuid() public static method

Decodes a Guid following RFC 4122
public static ToRfcGuid ( this buffer ) : System.Guid
buffer this Buffer containing a serialized big-endian encoded .
return System.Guid

ToRfcGuid() public static method

Decodes a Guid following RFC 4122
public static ToRfcGuid ( this buffer, int startingIndex ) : System.Guid
buffer this Buffer containing a serialized big-endian encoded .
startingIndex int Starting index in .
return System.Guid