Griaule Biometrics

Home » GrDecodeBase64

GrDecodeBase64

Decodes a Base64 template.

Prerequisites The template array must be already allocated. The recommended size is GR_MAX_SIZE_TEMPLATE bytes.

Return On success, GR_OK is returned.
On failure, the appropriate error code is returned.

Parameters

[in] encodedBuffer

The template to be decoded.

[in] encodedSize

[in] The size in bytes of the supplied base64 template.

[out] decodedBuffer

The byte array in which the decoded template will be stored.

[in,out] decodedSize

[in] The maximum size in bytes of the byte array supplied. [out] The size in bytes of the decoded template.

Declaration

C++

int __stdcall GrDecodeBase64(const char* encodedBuffer, int encodedSize, char * decodedBuffer, int * decodedSize);

Delphi

function GrDecodeBase64(encodedBuffer: Pchar; encodedSize:Integer; decodedBuffer: Pchar; var decodedSize: Integer): Integer; stdcall;