mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-21 11:02:42 +08:00
optimize(all): drop lstnq & impl. orbyte
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
package head
|
||||
|
||||
import "encoding/binary"
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type PacketFlags uint16
|
||||
|
||||
func (pf PacketFlags) String() string {
|
||||
return fmt.Sprintf("%04x", uint16(pf))
|
||||
}
|
||||
|
||||
func (pf PacketFlags) IsValid() bool {
|
||||
return pf&0x8000 == 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user