mts: expand on comment

This commit is contained in:
Trek H 2021-03-31 21:00:00 +10:30
parent a8e65bfa7b
commit 624bf79a6e
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ func asByte(b bool) byte {
// GotsPacket takes a byte slice and returns a Packet as defined in github.com/comcast/gots/packet.
// TODO: replace this with a type conversion as described here: https://github.com/golang/go/issues/395
// when it becomes available in Go 1.17.
func GotsPacket(b []byte) *packet.Packet {
if len(b) != packet.PacketSize {
panic("invalid packet size")