Documentation ¶
Index ¶
- func AddLength(data []byte) []byte
- func AuthDigest(s string) string
- func CutBytes(bt *[]byte, length int) *[]byte
- func DoZlibCompress(src []byte) []byte
- func DoZlibUnCompress(compressSrc []byte) []byte
- func NewCFB8Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB8Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func Num2Bytes(num interface{}) ([]byte, bool)
- func Num2String(num interface{}) (string, bool)
- func RandByte(n int) string
- func RsaEncrypt(publicKey []byte, orignData []byte) ([]byte, bool)
- func SessionRequest(param string) (string, bool)
- func TokenRequest(apiType string, param string) (string, bool)
- type Bool
- type Cfb8
- type Double
- type Float
- type Packet
- type Player
- type String
- type UnsignedShort
- type VarInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaEncrypt ¶
使用服务器发的公钥进行rsa加密
Types ¶
type Cfb8 ¶
type Cfb8 struct {
// contains filtered or unexported fields
}
func (*Cfb8) XORKeyStream ¶
type Player ¶
type Player struct { Username string Account string Password string UUID string AccessToken string ClientToken string Id_ string }
func (*Player) Invalidate ¶
func (*Player) SetSession ¶
type String ¶
type String struct{}
var StringInstance *String
type UnsignedShort ¶
type UnsignedShort struct{}
UnsignedShort是常规的16位2byte无符号整形
var UnsignedShortInstance *UnsignedShort
type VarInt ¶
type VarInt struct{}
VarInt是MC中的协议通信数据类型,最多5位
var VarIntInstance *VarInt
func (*VarInt) DecodeByte ¶
Click to show internal directories.
Click to hide internal directories.