aboutsummaryrefslogtreecommitdiff
path: root/unmarshal
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-08-11 16:11:38 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-08-11 16:11:38 +0200
commit60f72236c260c3ee0a0c72fe29d61786671424f8 (patch)
tree8a70c8dfd735008c0aef0d68620bb6ccc2637185 /unmarshal
parentdbf201b61a9f3d9e55d6744009f0f8f35c204e9d (diff)
Primitive, but works somehow
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))
+}