Set copies the key and val bytes into the segment as a "set" mutation. The key must be unique (not repeated) within the segment.
(key, val []byte)
| 167 | // mutation. The key must be unique (not repeated) within the |
| 168 | // segment. |
| 169 | func (a *segment) Set(key, val []byte) error { |
| 170 | return a.mutate(OperationSet, key, val) |
| 171 | } |
| 172 | |
| 173 | // Del copies the key bytes into the segment as a "deletion" mutation. |
| 174 | // The key must be unique (not repeated) within the segment. |