1
0
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:
源文雨
2025-02-25 19:38:16 +09:00
parent 4b60801a0f
commit 9f36504635
22 changed files with 501 additions and 573 deletions

View File

@@ -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
}