summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ber.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/ber.go b/ber.go
index 3e99a27..5f95e0a 100644
--- a/ber.go
+++ b/ber.go
@@ -255,12 +255,8 @@ func ReadPacket(reader io.Reader) (*Packet, error) {
return p, nil
}
-func DecodeString(data []byte) (ret string) {
- for _, c := range data {
- ret += fmt.Sprintf("%c", c)
- }
-
- return
+func DecodeString(data []byte) (string) {
+ return string(data)
}
func DecodeInteger(data []byte) (ret uint64) {