Documentation ¶
Index ¶
Constants ¶
View Source
const ( S2CPacketSize = 1052 C2SPacketSize = 40 )
Variables ¶
This section is empty.
Functions ¶
func C2SMarshal ¶ added in v0.22.0
Types ¶
type C2SProtocol ¶ added in v0.22.0
type C2SProtocol struct { FID [20]byte FileIdx int16 PktIdx [8]int16 // contains filtered or unexported fields }
func C2SUnmarshal ¶ added in v0.22.0
func C2SUnmarshal(C2SPkt []byte) (content C2SProtocol)
type S2CProtocol ¶ added in v0.22.0
type S2CProtocol struct { FID [20]byte FileIdx int16 PktIdx int16 PayloadSize int16 Payload [1024]byte // contains filtered or unexported fields }
func S2CUnmarshal ¶ added in v0.22.0
func S2CUnmarshal(S2CPkt []byte) (content S2CProtocol)
Click to show internal directories.
Click to hide internal directories.