public static Guid ReadGuidBytes(byte[] buffer, ref int offset) { offset += 16; return(BigEndianConverter.ToGuid(buffer, offset - 16)); }
public static Guid ReadGuidBytes(Stream stream) { byte[] buffer = new byte[16]; stream.Read(buffer, 0, 16); return(BigEndianConverter.ToGuid(buffer, 0)); }