/MEng/System/Runtime/MD5Hash

ClassPath:MEng.System.Runtime.MD5Hash
Parent ClassPath:MEng.Formattable
Copyable:Yes
Final:Yes

MEng.System.Runtime.MD5Hash holds the results of hashes generated by the hash digest class MEng.System.Runtime.MD5Digest. It is a 128 bit bit sequence.

 

Constructors:

Constructor();

There is just a default constructor available, which creates an empty hash of all zeros.

 

Final, Const Methods:

GetAsString() Returns MEng.String;

Returns a formatted version of the hash, in the form of 8 bytes, a dash, then 8 more bytes. Each byte is formatted as a two character hex digit, with leading zero if it is less than 16, for instance "D41D8CD98F00B204-E9800998ECF8427E"

GetByteCount() Returns MEng.Card4;

Returns the number of bytes in the hash. It is always 16 bytes, 128 bits, but it's probably always best not to hard code such magic values, so use this instead.

Equal([In] MEng.System.Runtime.MD5Hash ToComp) Returns MEng.Boolean;
operator=
(
    [In] MEng.System.Runtime.MD5Hash Src1
    , [In] MEng.System.Runtime.MD5Hash Src2
) Returns MEng.Boolean;

Compares the two objects and returns True if they are equal and False if they are unequal. Neither object is affected. They do the same thing, are only only syntactically different.

 

Final, Non-Const Methods:

CopyToMemBuf(Out] MEng.System.Runtime.MemBuf TargetBuf);

Copies the bytes of this hash out to the target buffer. The target buffer must have a maximum size of at least 16 bits to hold the results, or it will throw an exception.

Reset();

Resets the hash back to all zeros.