aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
Diffstat (limited to 'ber')
-rw-r--r--ber/common.go2
-rw-r--r--ber/encode.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/ber/common.go b/ber/common.go
index 7c4f496..b9e359a 100644
--- a/ber/common.go
+++ b/ber/common.go
@@ -75,3 +75,5 @@ func (o BitString) String() string {
}
return s
}
+
+type Raw []byte
diff --git a/ber/encode.go b/ber/encode.go
index 87f19f1..9e085c4 100644
--- a/ber/encode.go
+++ b/ber/encode.go
@@ -9,6 +9,7 @@ type encodeState struct {
bytes.Buffer
}
+/*
func Marshal(v interface{}) ([]byte, error) {
e := &encodeState{}
err := e.marshal(v)
@@ -17,6 +18,7 @@ func Marshal(v interface{}) ([]byte, error) {
}
return e.Bytes(), nil
}
+*/
func (e *encodeState) marshal(v interface{}) (err error) {
e.reflectValue(reflect.ValueOf(v))