SequoiaDB
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
Static Public Member Functions | List of all members
SequoiaDB.Bson.GuidConverter Class Reference

A static class containing methods to convert to and from Guids and byte arrays in various byte orders. More...

Static Public Member Functions

static Guid FromBytes (byte[] bytes, GuidRepresentation representation)
 Converts a byte array to a Guid.
 
static byte[] ToBytes (Guid guid, GuidRepresentation representation)
 Converts a Guid to a byte array.
 

Detailed Description

A static class containing methods to convert to and from Guids and byte arrays in various byte orders.

Member Function Documentation

static Guid SequoiaDB.Bson.GuidConverter.FromBytes ( byte[]  bytes,
GuidRepresentation  representation 
)
inlinestatic

Converts a byte array to a Guid.

Parameters
bytesThe byte array.
representationThe representation of the Guid in the byte array.
Returns
A Guid.
static byte [] SequoiaDB.Bson.GuidConverter.ToBytes ( Guid  guid,
GuidRepresentation  representation 
)
inlinestatic

Converts a Guid to a byte array.

Parameters
guidThe Guid.
representationThe representation of the Guid in the byte array.
Returns
A byte array.

The documentation for this class was generated from the following file: