mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 21:53:20 +00:00
Work on overlay natives
This commit is contained in:
parent
9a5aa5dd5f
commit
74f04f4847
6 changed files with 543 additions and 117 deletions
35
scripting/include/ripext/crypto.inc
Normal file
35
scripting/include/ripext/crypto.inc
Normal file
|
@ -0,0 +1,35 @@
|
|||
methodmap Crypto
|
||||
{
|
||||
|
||||
public native bool MD5(const char[] source, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool MD5File(const char[] file, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA1(const char[] source, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA1File(const char[] file, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA256(const char[] source, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA256File(const char[] file, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA512(const char[] source, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool SHA512File(const char[] file, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool CRC16(const char[] source, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool CRC16File(const char[] file, char[] buffer, int maxlength, bool uppercase = true);
|
||||
|
||||
public native bool CRC32(const char[] source, char[] buffer, int maxlength, bool uppercase = true, bool hexdecimal = true);
|
||||
|
||||
public native bool CRC32File(const char[] file, char[] buffer, int maxlength, bool uppercase = true, bool hexdecimal = true);
|
||||
|
||||
// - 1 is returned on success (the string output buffer is sufficient)
|
||||
// otherwise it is the minimum buffer length required
|
||||
public native int Base64Encode(const char[] source, char[] buffer, int maxlength);
|
||||
|
||||
// - 1 is returned on success (the string output buffer is sufficient)
|
||||
// otherwise it is the minimum buffer length required
|
||||
public native int Base64Decode(const char[] source, char[] buffer, int maxlength);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue