setBuiltIn sets the given ID to the OID. This should only be used for the built-in items.
(id Id, oid uint32)
| 117 | |
| 118 | // setBuiltIn sets the given ID to the OID. This should only be used for the built-in items. |
| 119 | func (cache *cacheStruct) setBuiltIn(id Id, oid uint32) { |
| 120 | if oid > builtinOidLimit { |
| 121 | panic("oid is not a built-in") |
| 122 | } |
| 123 | cache.toOID[id] = oid |
| 124 | cache.toInternal[oid] = id |
| 125 | } |
| 126 | |
| 127 | // update is used to change the OID mapping of an existing internal ID that has been changed (where the internal ID |
| 128 | // points to the same logical item). |