aboutsummaryrefslogtreecommitdiff
path: root/ber/new/dump.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-25 21:08:06 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-25 21:08:06 +0200
commitdc9820adf986a2dacce8c179e060c43a1653f6c6 (patch)
tree6d5784bfaaebcf2d7a09f70f8035a8401a284c6a /ber/new/dump.go
parentf3676c95947644fcdf2499b03b4a837910545395 (diff)
zzz
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 {