@Override
public int hashinate(
Object value,
HashinatorConfig config)
{
ParameterSet parameterSet = ParameterSet.fromArrayNoCopy(value, config.type.typeId(), config.configBytes);
// serialize the param set
clearPsetAndEnsureCapacity(parameterSet.getSerializedSize());
try {
parameterSet.flattenToBuffer(psetBuffer);
} catch (final IOException exception) {
throw new RuntimeException(exception); // can't happen
}
return nativeHashinate(pointer, config.configPtr, config.numTokens);