utils

package
v0.0.0-...-416ecff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wireshark

func Wireshark(offset int, message []byte) string

Wireshark prints the given byte slice in same format as the Wireshark application. It prints 16 bytes per line with a space after 8 bytes. This is useful for debugging messages sent over the wire and for comparing messages with other implementations. The offset is required because the message might not start at the beginning of the line. Without the offset the printed message is shifted compared to the message in wireshark.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL