Kohi Game Engine
identifier.h File Reference

Contains a system for creating numeric identifiers. More...

#include "defines.h"

Go to the source code of this file.

Data Structures

struct  identifier
 

Typedefs

typedef struct identifier identifier
 

Functions

KAPI identifier identifier_create (void)
 Generates a new unique identifier. More...
 
KAPI identifier identifier_from_u64 (u64 uniqueid)
 Creates an identifier from a known value. Useful for deserialization. More...
 
KAPI b8 identifiers_equal (identifier a, identifier b)
 Indicates if the provided identifiers are equal. More...
 

Detailed Description

Contains a system for creating numeric identifiers.

Author
Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
Version
2.0
Date
2023-10-22

Typedef Documentation

◆ identifier

typedef struct identifier identifier

A Globally/Universally Unique identifier in 64-bit unsigned integer format. To be used primarily as an identifier for resources. (De)serialization friendly.

Function Documentation

◆ identifier_create()

KAPI identifier identifier_create ( void  )

Generates a new unique identifier.

◆ identifier_from_u64()

KAPI identifier identifier_from_u64 ( u64  uniqueid)

Creates an identifier from a known value. Useful for deserialization.

◆ identifiers_equal()

KAPI b8 identifiers_equal ( identifier  a,
identifier  b 
)

Indicates if the provided identifiers are equal.