Files
esdi/peripheral/communication/packets/newWindowIDPakcket.go
T

21 lines
318 B
Go

package packets
import (
"esdi/peripheral/communication/constvar"
)
type NewWindowID struct {
StartMarker byte
ID int16
EndMarker byte
}
func (pkt *NewWindowID) Validate() bool {
if pkt.StartMarker != constvar.StartOfText ||
pkt.EndMarker != constvar.EndOfText {
return false
}
return true
}