mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
Guid to UUID
This commit is contained in:
@ -808,11 +808,16 @@ public static class DC // Data Converter
|
||||
return ar.ToArray();
|
||||
}
|
||||
|
||||
public static Guid GetGuid(this byte[] data, uint offset)
|
||||
public static UUID GetUUID(this byte[] data, uint offset)
|
||||
{
|
||||
return new Guid(Clip(data, offset, 16));
|
||||
return new UUID(data, offset);
|
||||
}
|
||||
|
||||
//public static Guid GetGuid(this byte[] data, uint offset)
|
||||
//{
|
||||
// return new Guid(Clip(data, offset, 16));
|
||||
//}
|
||||
|
||||
public static DateTime GetDateTime(this byte[] data, uint offset, Endian endian)
|
||||
{
|
||||
var ticks = GetInt64(data, offset, endian);
|
||||
|
Reference in New Issue
Block a user