Lines Matching refs:Key
34 // It maps from an abstract key to a descriptor. If independent modules each
39 typedef uint32_t Key;
40 typedef std::vector<std::pair<Key, int> > Mapping;
42 // Often we want a canonical descriptor for a given Key. In this case, we add
43 // the following constant to the key value:
49 // Get a descriptor given a key. It is a fatal error if the key is not known.
50 int Get(Key key) const;
52 // Get a descriptor give a key. Returns -1 on error.
53 int MaybeGet(Key key) const;
55 // Set the descriptor for the given key.
56 void Set(Key key, int fd);