Sha256: bdc5f44e1879ae0ccafcb3ce53ffebeb30ba7af3d9f847944a2adfd09bcce81f

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

#ifndef SAY_TABLE_H_
#define SAY_TABLE_H_

#include "say_basic_type.h"

typedef struct {
  uint32_t key;
  void *value;
} say_table_pair;

typedef struct {
  say_table_pair *pairs;
  say_destructor destructor;
  size_t size;
} say_table;

say_table *say_table_create(say_destructor destructor);
void say_table_free(say_table *table);

void *say_table_get(say_table *table, uint32_t id);
void  say_table_set(say_table *table, uint32_t id, void *value);
void  say_table_del(say_table *table, uint32_t id);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ray-0.1.1 ext/say_table.h
ray-0.1.0 ext/say_table.h