this function is currently unused
| 33 | |
| 34 | // this function is currently unused |
| 35 | Record Record_New |
| 36 | ( |
| 37 | rax *mapping |
| 38 | ) { |
| 39 | ASSERT(mapping); |
| 40 | // determine record size |
| 41 | uint entries_count = raxSize(mapping); |
| 42 | uint rec_size = sizeof(_Record); |
| 43 | rec_size += sizeof(Entry) * entries_count; |
| 44 | |
| 45 | Record r = rm_calloc(1, rec_size); |
| 46 | r->mapping = mapping; |
| 47 | |
| 48 | return r; |
| 49 | } |
| 50 | |
| 51 | // returns the number of entries held by record |
| 52 | uint Record_length |