Class Md5Utils
Inheritance
System.Object
Md5Utils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class Md5Utils : IMd5Util
Constructors
Md5Utils()
Declaration
Methods
CalculateMD5(Byte[])
Declaration
public static string CalculateMD5(byte[] data)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
|
Returns
| Type |
Description |
| System.String |
|
CalculateMD5(FileInfo)
Declaration
public static string CalculateMD5(FileInfo file)
Parameters
| Type |
Name |
Description |
| System.IO.FileInfo |
file |
|
Returns
| Type |
Description |
| System.String |
|
CalculateMD5(Stream)
Declaration
public static string CalculateMD5(Stream stream)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
stream |
|
Returns
| Type |
Description |
| System.String |
|
CalculateMD5ByteArray(IList<Byte[]>)
Declaration
public static byte[] CalculateMD5ByteArray(IList<byte[]> multiBlockData)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<System.Byte[]> |
multiBlockData |
|
Returns
| Type |
Description |
| System.Byte[] |
|
ComputeFileId(String)
Declaration
public static byte[] ComputeFileId(string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
fileName |
|
Returns
| Type |
Description |
| System.Byte[] |
|
ComputeFileIdString(Byte[])
Declaration
public static string ComputeFileIdString(byte[] bytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
bytes |
|
Returns
| Type |
Description |
| System.String |
|
ComputeFileIdString(String)
Declaration
public static string ComputeFileIdString(string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
fileName |
|
Returns
| Type |
Description |
| System.String |
|
ComputeObjectsCacheName(Object[], String)
Declaration
public static string ComputeObjectsCacheName(object[] objects, string postfix)
Parameters
| Type |
Name |
Description |
| System.Object[] |
objects |
|
| System.String |
postfix |
|
Returns
| Type |
Description |
| System.String |
|
ComputeObjectsHash(Object[])
Declaration
public static byte[] ComputeObjectsHash(params object[] objects)
Parameters
| Type |
Name |
Description |
| System.Object[] |
objects |
|
Returns
| Type |
Description |
| System.Byte[] |
|
ComputeStringId(String)
Declaration
public static string ComputeStringId(string str)
Parameters
| Type |
Name |
Description |
| System.String |
str |
|
Returns
| Type |
Description |
| System.String |
|
GetBytes(Stream)
Declaration
public static IEnumerable<byte> GetBytes(Stream stream)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
stream |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.Byte> |
|
GetBytes(Nullable<PointF>)
Declaration
public static IEnumerable<byte> GetBytes(PointF? point)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Drawing.PointF> |
point |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.Byte> |
|
GetBytes(Nullable<RectangleF>)
Declaration
public static IEnumerable<byte> GetBytes(RectangleF? rectangle)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Drawing.RectangleF> |
rectangle |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.Byte> |
|
GetBytes(Nullable<SizeF>)
Declaration
public static IEnumerable<byte> GetBytes(SizeF? size)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Drawing.SizeF> |
size |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.Byte> |
|
GetFileId(String)
Declaration
public byte[] GetFileId(string imagePath)
Parameters
| Type |
Name |
Description |
| System.String |
imagePath |
|
Returns
| Type |
Description |
| System.Byte[] |
|
GetMd5(Object)
Declaration
public static string GetMd5(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.String |
|
Implements