From 375661f7291d03e1fca2c386b0412f31c2060fe9 Mon Sep 17 00:00:00 2001 From: Robin Harper Date: Thu, 13 Mar 2014 12:46:49 -0400 Subject: Add support for transporting the raw byte value --- ber.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ber.go b/ber.go index 31c43bd..f670f8f 100644 --- a/ber.go +++ b/ber.go @@ -12,6 +12,7 @@ type Packet struct { TagType uint8 Tag uint8 Value interface{} + ByteValue []byte Data *bytes.Buffer Children []*Packet Description string @@ -298,6 +299,8 @@ func decodePacket(data []byte) (*Packet, []byte) { } } else if p.ClassType == ClassUniversal { p.Data.Write(data[datapos : datapos+datalen]) + p.ByteValue = value_data + switch p.Tag { case TagEOC: case TagBoolean: -- cgit v1.2.3