aboutsummaryrefslogtreecommitdiff
path: root/unmarshal
diff options
context:
space:
mode:
Diffstat (limited to 'unmarshal')
-rw-r--r--unmarshal/main.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/unmarshal/main.go b/unmarshal/main.go
new file mode 100644
index 0000000..b04df04
--- /dev/null
+++ b/unmarshal/main.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "fmt"
+
+ "dim13.org/asn1/ber"
+ rose "dim13.org/asn1/ROSE"
+)
+
+func main() {
+ pdu := rose.Invoke{
+ InvokeId: 2,
+ Opcode: 511,
+ Argument: []byte{2, 1, 0},
+ }
+ b, err := ber.Marshal(pdu)
+ fmt.Println(err, b)
+ fmt.Println(ber.Dump(b))
+}