aboutsummaryrefslogtreecommitdiff
path: root/ber/class.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-08-08 13:05:41 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-08-08 13:05:41 +0200
commit4c4272628632cc881eb52f675e1219b4fbd491aa (patch)
treec3b5d0d5468a70c9fe251766bcb8c4aaf29e5f33 /ber/class.go
parent0eb96c8c2494cfa093dd289efa35be9b0db6727c (diff)
Parse len
Diffstat (limited to 'ber/class.go')
-rw-r--r--ber/class.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/ber/class.go b/ber/class.go
index aca8220..23d31cd 100644
--- a/ber/class.go
+++ b/ber/class.go
@@ -117,16 +117,6 @@ func Ident(b []byte) (Class, Kind, Tag, int) {
return c, k, t, n + 1
}
-func Length(b []byte) (int, int) {
- if b[0]&0x80 != 0 {
- l := int(b[0] & 0x7f)
- i := UnmarshalUint(b[1 : l+1])
- return int(i), int(l + 1)
- } else {
- return int(b[0]), 1
- }
-}
-
func Unversal(b []byte) (int, bool) {
c, _, t, _ := Ident(b)
return int(t), c == classUniversal