aboutsummaryrefslogtreecommitdiff
path: root/ber/int.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-29 19:46:32 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-29 19:46:32 +0200
commitfaaeb924bfb89d90860f8c38c15fb21b13787e8d (patch)
treebc8cf900578b9cedb660e449dec4c06beb0b1500 /ber/int.go
parent33ff8c56d49f9dcd37f0b68511189a5db831a284 (diff)
Rudimentar UnmarshalOID
Diffstat (limited to 'ber/int.go')
-rw-r--r--ber/int.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ber/int.go b/ber/int.go
index 85d99e8..a8fe19c 100644
--- a/ber/int.go
+++ b/ber/int.go
@@ -44,3 +44,7 @@ func marshalInt(i int64) (b []byte) {
}
return
}
+
+func UnmarshalInt(b []byte) int {
+ return int(unmarshalInt(b))
+}