sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
fthash.h File Reference

Go to the source code of this file.

Classes

union  FT_Hashkey_
struct  FT_HashnodeRec_
struct  FT_HashRec_

Macros

#define ft_hash_num_free   ft_hash_str_free

Typedefs

typedef FT_BEGIN_HEADER union FT_Hashkey_ FT_Hashkey
typedef struct FT_HashnodeRec_ FT_HashnodeRec
typedef struct FT_HashnodeRec_ * FT_Hashnode
typedef FT_ULong(*) FT_Hash_LookupFunc(FT_Hashkey *key)
typedef FT_Bool(*) FT_Hash_CompareFunc(FT_Hashkey *a, FT_Hashkey *b)
typedef struct FT_HashRec_ FT_HashRec
typedef struct FT_HashRec_ * FT_Hash

Functions

FT_Error ft_hash_str_init (FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_num_init (FT_Hash hash, FT_Memory memory)
void ft_hash_str_free (FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_str_insert (const char *key, size_t data, FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_num_insert (FT_Int num, size_t data, FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_str_insert_no_overwrite (const char *key, size_t data, FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_num_insert_no_overwrite (FT_Int num, size_t data, FT_Hash hash, FT_Memory memory)
size_t * ft_hash_str_lookup (const char *key, FT_Hash hash)
size_t * ft_hash_num_lookup (FT_Int num, FT_Hash hash)
FT_Bool ft_hash_num_iterator (FT_UInt *idx, FT_Int *key, size_t *value, FT_Hash hash)
FT_Bool ft_hash_str_iterator (FT_UInt *idx, const char **key, size_t *value, FT_Hash hash)

Macro Definition Documentation

◆ ft_hash_num_free

#define ft_hash_num_free   ft_hash_str_free

Definition at line 110 of file fthash.h.

Typedef Documentation

◆ FT_Hash

typedef struct FT_HashRec_* FT_Hash

Definition at line 95 of file fthash.h.

◆ FT_Hash_CompareFunc

typedef FT_Bool(*) FT_Hash_CompareFunc(FT_Hashkey *a, FT_Hashkey *b)

Definition at line 77 of file fthash.h.

◆ FT_Hash_LookupFunc

typedef FT_ULong(*) FT_Hash_LookupFunc(FT_Hashkey *key)

Definition at line 74 of file fthash.h.

◆ FT_Hashnode

typedef struct FT_HashnodeRec_* FT_Hashnode

Definition at line 71 of file fthash.h.

Function Documentation

◆ ft_hash_num_init()

FT_Error ft_hash_num_init ( FT_Hash hash,
FT_Memory memory )

Definition at line 204 of file fthash.c.

◆ ft_hash_num_insert()

FT_Error ft_hash_num_insert ( FT_Int num,
size_t data,
FT_Hash hash,
FT_Memory memory )

Definition at line 288 of file fthash.c.

◆ ft_hash_num_insert_no_overwrite()

FT_Error ft_hash_num_insert_no_overwrite ( FT_Int num,
size_t data,
FT_Hash hash,
FT_Memory memory )

Definition at line 318 of file fthash.c.

◆ ft_hash_num_iterator()

FT_Bool ft_hash_num_iterator ( FT_UInt * idx,
FT_Int * key,
size_t * value,
FT_Hash hash )

Definition at line 371 of file fthash.c.

◆ ft_hash_num_lookup()

size_t * ft_hash_num_lookup ( FT_Int num,
FT_Hash hash )

Definition at line 358 of file fthash.c.

◆ ft_hash_str_free()

void ft_hash_str_free ( FT_Hash hash,
FT_Memory memory )

Definition at line 212 of file fthash.c.

◆ ft_hash_str_init()

FT_Error ft_hash_str_init ( FT_Hash hash,
FT_Memory memory )

Definition at line 196 of file fthash.c.

◆ ft_hash_str_insert()

FT_Error ft_hash_str_insert ( const char * key,
size_t data,
FT_Hash hash,
FT_Memory memory )

Definition at line 273 of file fthash.c.

◆ ft_hash_str_insert_no_overwrite()

FT_Error ft_hash_str_insert_no_overwrite ( const char * key,
size_t data,
FT_Hash hash,
FT_Memory memory )

Definition at line 303 of file fthash.c.

◆ ft_hash_str_iterator()

FT_Bool ft_hash_str_iterator ( FT_UInt * idx,
const char ** key,
size_t * value,
FT_Hash hash )

Definition at line 403 of file fthash.c.

◆ ft_hash_str_lookup()

size_t * ft_hash_str_lookup ( const char * key,
FT_Hash hash )

Definition at line 345 of file fthash.c.