aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-14 14:09:38 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-14 14:09:38 +0200
commit14f91378e2c4bc970b41ec8e940eda9e897bbc0f (patch)
tree553e1122ee4d93ba03dd0be7936c04751a27909d /ber
parentd1e5bdf860d6d7ac3a8f3f8917bbae30f48d4fe5 (diff)
Update example
Diffstat (limited to 'ber')
-rw-r--r--ber/bits.go6
-rw-r--r--ber/class_test.go2
2 files changed, 2 insertions, 6 deletions
diff --git a/ber/bits.go b/ber/bits.go
index 3d1ca41..4eb6c05 100644
--- a/ber/bits.go
+++ b/ber/bits.go
@@ -3,7 +3,7 @@ package ber
// BitString
type Bits []bool
-func parseBitString(b []byte) (bs Bits) {
+func UnmarshalBitString(b []byte) (bs Bits) {
padding := int(b[0])
length := (len(b)-1)*8 - padding
for i := 0; i < length; i++ {
@@ -15,10 +15,6 @@ func parseBitString(b []byte) (bs Bits) {
return
}
-func UnmarshalBitString(b []byte) Bits {
- return parseBitString(b)
-}
-
func (bs Bits) String() (s string) {
bmap := map[bool]string{
true: "1",
diff --git a/ber/class_test.go b/ber/class_test.go
index 90fe1f8..a0b2569 100644
--- a/ber/class_test.go
+++ b/ber/class_test.go
@@ -23,7 +23,7 @@ func ExampleIdent() {
// 0x2: Universal Primitive Integer
// 0x4: Universal Primitive Octet String
// 0xa: Universal Primitive Enumerated
- // 0x30: Universal Constructed Sequence / Of
+ // 0x30: Universal Constructed Sequence (Of)
// 0x40: Application Primitive 0x0
// 0x61: Application Constructed 0x1
// 0x7e: Application Constructed 0x1e