aboutsummaryrefslogtreecommitdiff
path: root/ber/marshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/marshal.go')
-rw-r--r--ber/marshal.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ber/marshal.go b/ber/marshal.go
index ca91271..130bef5 100644
--- a/ber/marshal.go
+++ b/ber/marshal.go
@@ -80,3 +80,13 @@ func unsupportedTypeEncoder(e *encodeState, v reflect.Value) {
func (e *encodeState) error(err error) {
panic(err)
}
+
+func intEncoder(e *encodeState, v reflect.Value) {
+ b := marshalInt(v.Int())
+ e.Write(b)
+}
+
+func objEncoder(e *encodeState, v reflect.Value) {
+ b := marshalObj(v.Interface().(Obj))
+ e.Write(b)
+}