aboutsummaryrefslogtreecommitdiff
path: root/object/id/algorithm_hexlen.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/id/algorithm_hexlen.go')
-rw-r--r--object/id/algorithm_hexlen.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/object/id/algorithm_hexlen.go b/object/id/algorithm_hexlen.go
new file mode 100644
index 00000000..2b7fa0fa
--- /dev/null
+++ b/object/id/algorithm_hexlen.go
@@ -0,0 +1,6 @@
+package objectid
+
+// HexLen returns the encoded hexadecimal length.
+func (algo Algorithm) HexLen() int {
+ return algo.Size() * 2
+}