aboutsummaryrefslogtreecommitdiff
path: root/ber/bits.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/bits.go')
-rw-r--r--ber/bits.go6
1 files changed, 1 insertions, 5 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",