aboutsummaryrefslogtreecommitdiff
path: root/ber/new/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/new/dump.go')
-rw-r--r--ber/new/dump.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/ber/new/dump.go b/ber/new/dump.go
index f3ba672..8293fa5 100644
--- a/ber/new/dump.go
+++ b/ber/new/dump.go
@@ -1,14 +1,11 @@
package ber
import (
- "bytes"
"fmt"
)
func Dump(b []byte) string {
- buf := bytes.NewBuffer(b)
- s := &state{*buf}
- return s.dump(0)
+ return newState(b).dump(0)
}
func (s *state) dump(ident int) string {