diff options
Diffstat (limited to 'object/id/algorithm_sum.go')
| -rw-r--r-- | object/id/algorithm_sum.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/object/id/algorithm_sum.go b/object/id/algorithm_sum.go new file mode 100644 index 00000000..26ad2ff6 --- /dev/null +++ b/object/id/algorithm_sum.go @@ -0,0 +1,6 @@ +package objectid + +// Sum computes an object ID from raw data using the selected algorithm. +func (algo Algorithm) Sum(data []byte) ObjectID { + return algo.info().sum(data) +} |
