blob: f244c4e6cd26b2d188d770ae45b1b21f9a2a3013 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package ber
func Split(b []byte) (c Class, k Kind, t Tag, l int, v []byte, r []byte) {
var n int
c, k, t, n = Ident(b)
b = b[n:]
l, n = UnmarshalLen(b)
b = b[n:]
v = b[:l]
r = b[l:]
return
}
|