mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-21 00:25:54 +02:00
Utilities: Renamed ReadGuidBytes / WriteGuidBytes to ReadGuid / WriteGuid
This commit is contained in:
parent
f5d727ddf2
commit
153abe3d27
12 changed files with 21 additions and 21 deletions
|
@ -89,15 +89,15 @@ namespace Utilities
|
|||
offset += 8;
|
||||
}
|
||||
|
||||
public static void WriteGuidBytes(byte[] buffer, int offset, Guid value)
|
||||
public static void WriteGuid(byte[] buffer, int offset, Guid value)
|
||||
{
|
||||
byte[] bytes = BigEndianConverter.GetBytes(value);
|
||||
Array.Copy(bytes, 0, buffer, offset, bytes.Length);
|
||||
}
|
||||
|
||||
public static void WriteGuidBytes(byte[] buffer, ref int offset, Guid value)
|
||||
public static void WriteGuid(byte[] buffer, ref int offset, Guid value)
|
||||
{
|
||||
WriteGuidBytes(buffer, offset, value);
|
||||
WriteGuid(buffer, offset, value);
|
||||
offset += 16;
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ namespace Utilities
|
|||
stream.Write(bytes, 0, bytes.Length);
|
||||
}
|
||||
|
||||
public static void WriteGuidBytes(Stream stream, Guid value)
|
||||
public static void WriteGuid(Stream stream, Guid value)
|
||||
{
|
||||
byte[] bytes = BigEndianConverter.GetBytes(value);
|
||||
stream.Write(bytes, 0, bytes.Length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue