(keys, values any, opts *BatchOptions)
| 1438 | } |
| 1439 | |
| 1440 | func (m *Map) batchUpdatePerCPU(keys, values any, opts *BatchOptions) (int, error) { |
| 1441 | count, err := sliceLen(keys) |
| 1442 | if err != nil { |
| 1443 | return 0, fmt.Errorf("keys: %w", err) |
| 1444 | } |
| 1445 | |
| 1446 | valueBuf, err := marshalBatchPerCPUValue(values, count, int(m.valueSize)) |
| 1447 | if err != nil { |
| 1448 | return 0, err |
| 1449 | } |
| 1450 | |
| 1451 | return m.batchUpdate(count, keys, sys.UnsafeSlicePointer(valueBuf), opts) |
| 1452 | } |
| 1453 | |
| 1454 | // BatchDelete batch deletes entries in the map by keys. |
| 1455 | // "keys" must be of type slice, a pointer to a slice or buffer will not work. |
no test coverage detected