Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

MD5AddToDigest Function

Overview

The MD5AddToDigest function allows data to be added to an MD5 Digest Object.

Syntax/Parameters

Syntax

int result = MD5AddToDigest ( handle, string buffer, [int size] );

Parameters

handle

A handle created by the MD5NewDigestObject function.

buffer

A string or char buffer that will be added to the digest. If a string is supplied, it is assumed to be zero-terminated unless size is specified.

size

An optional int specifying a size of the input buffer. For strings, if size is omitted, the function runs the length of the string, For buffers, size must be at or less than the allocated size of the buffer.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure.

Remarks

The series of MD5NewDigestObject, MD5AddToDigest and MD5FinishDigest functions allow an MD5 hash to be progressive built.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic