This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz MD5: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
New page: BZF_API const char *bz_MD5(const char* str); BZF_API const char *bz_MD5(const void* data, size_t size); {{BZFS_API_Doc}}{{BZFS_API_Funcs}} ==Syntax== int bz_getLoadedPlugins( [[bz_APIStri...
 
AAA (talk | contribs)
version info, parameter types, spelling
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}{{BZFS_API_Funcs}}
==Prototype==
BZF_API const char *bz_MD5(const char* str);
BZF_API const char *bz_MD5(const char* str);
BZF_API const char *bz_MD5(const void* data, size_t size);
BZF_API const char *bz_MD5(const void* data, size_t size);
{{BZFS_API_Doc}}{{BZFS_API_Funcs}}
==Syntax==
int bz_getLoadedPlugins( [[bz_APIStringList]] * list )


==Parameters==
==Parameters==
* '''''list''''': A pointer to the [[bz_APIStringList]] to store the names of all loaded plug-ins.
; const char* str : A pointer to a null terminated string to use as the MD5 source.
; const char* data : A pointer to raw unterminated data to use as the MD5 source.
; size_t size : The size of the raw data.


==Returns==
==Returns==
The number of loaded plugins.
The 32-character lowercase hexadecimal (ASCII) representation of the MD5 hash.


==Description==
==Description==
This API function appends all currently loaded plug-ins to the end of a [[bz_APIStringList]].
This function uses the same MD5 logic as BZFS.


==See Also==
==Version==
[[bz_loadPlugin]]
Requires BZFS 2.99.4 (20080524, r17281) or later
[[bz_unloadPlugin]]
[[bz_registerCustomPluginHandler]]
[[bz_removeCustomPluginHandler]]

Latest revision as of 23:42, 25 May 2008

BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.
BZFS API Function. This page documents a BZFS_API Function, that is provided by the BZFS game server for plug-ins to call.


Prototype

BZF_API const char *bz_MD5(const char* str);

BZF_API const char *bz_MD5(const void* data, size_t size);

Parameters

const char* str
A pointer to a null terminated string to use as the MD5 source.
const char* data
A pointer to raw unterminated data to use as the MD5 source.
size_t size
The size of the raw data.

Returns

The 32-character lowercase hexadecimal (ASCII) representation of the MD5 hash.

Description

This function uses the same MD5 logic as BZFS.

Version

Requires BZFS 2.99.4 (20080524, r17281) or later