aboutsummaryrefslogtreecommitdiff
path: root/ber/int.go
diff options
context:
space:
mode:
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))
+}