(id uint64)
| 559 | } |
| 560 | |
| 561 | func (lm locationIDMap) get(id uint64) *Location { |
| 562 | if id < uint64(len(lm.dense)) { |
| 563 | return lm.dense[int(id)] |
| 564 | } |
| 565 | return lm.sparse[id] |
| 566 | } |
| 567 | |
| 568 | func (lm locationIDMap) set(id uint64, loc *Location) { |
| 569 | if id < uint64(len(lm.dense)) { |
no outgoing calls