mirror of https://bitbucket.org/ausocean/av.git
mts: expand on comment
This commit is contained in:
parent
a8e65bfa7b
commit
624bf79a6e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue