Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#mem_usedObject

for testing



190
191
192
193
# File 'ext/judy_hash.c', line 190

VALUE ruby_Hash_mem_used(VALUE hash) {
  if (!RHASH(hash)->ntbl ) return Qnil;
  return UINT2NUM(st_memsize(RHASH(hash)->ntbl));
}