aboutsummaryrefslogtreecommitdiff
path: root/object/id/algorithm_size.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/id/algorithm_size.go')
-rw-r--r--object/id/algorithm_size.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/object/id/algorithm_size.go b/object/id/algorithm_size.go
new file mode 100644
index 00000000..104bfeb2
--- /dev/null
+++ b/object/id/algorithm_size.go
@@ -0,0 +1,6 @@
+package objectid
+
+// Size returns the hash size in bytes.
+func (algo Algorithm) Size() int {
+ return algo.info().size
+}