diff --git a/ber.go b/ber.go index 6153f46..b89c7f4 100644 --- a/ber.go +++ b/ber.go @@ -160,6 +160,10 @@ func PrintBytes(out io.Writer, buf []byte, indent string) { } } +func WritePacket(out io.Writer, p *Packet) { + printPacket(out, p, 0, false) +} + func PrintPacket(p *Packet) { printPacket(os.Stdout, p, 0, false) }