_aaGetY

Lookup *pkey in aa. Called only from implementation of (aakey) expressions when value is mutable.

extern (C)
void*
_aaGetY
(
AA* aa
,
const TypeInfo_AssociativeArray ti
,
const size_t valsz
,
scope const void* pkey
)

Parameters

aa
Type: AA*

associative array opaque pointer

ti

TypeInfo for the associative array

valsz
Type: size_t

ignored

pkey
Type: void*

pointer to the key value

Return Value

Type: void*

if key was in the aa, a mutable pointer to the existing value. If key was not in the aa, a mutable pointer to newly inserted value which is set to all zeros

Suggestion Box / Bug Report