libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
array_entry Struct Reference

A single entry in the sparse array. More...

#include <array.h>

Public Attributes

int32_t key
char * value
size_t value_len
uint32_t hash
bool active

Detailed Description

A single entry in the sparse array.

Definition at line 35 of file array.h.

Member Data Documentation

◆ active

bool array_entry::active

Entry is active (not deleted).

Definition at line 40 of file array.h.

◆ hash

uint32_t array_entry::hash

Pre-computed hash of key.

Definition at line 39 of file array.h.

◆ key

int32_t array_entry::key

Integer key (1-based by convention).

Definition at line 36 of file array.h.

◆ value

char* array_entry::value

Owned string value (NULL = tombstone).

Definition at line 37 of file array.h.

◆ value_len

size_t array_entry::value_len

Byte length of value (0 when value is NULL).

Definition at line 38 of file array.h.


The documentation for this struct was generated from the following file: