Griaule Biometrics

Home » GrEncodeBase64

GrEncodeBase64

Encodes a template in Base64 format.

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] buffer

The template to be encoded.

[in] bufferSize

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

[out] encodedBuffer

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

[in,out] encodedSize

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

Declaration

C++

int __stdcall GrEncodeBase64(const char* buffer, int bufferSize, char * encodedBuffer, int * encodedSize);

Delphi

function GrEncodeBase64(buffer: Pchar; bufferSize:Integer; encodedBuffer: Pchar; var encodedSize: Integer): Integer; stdcall;