gspackoper

package
v5.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POBegin        uint32 = 0
	POGenOper      uint32 = 1
	POChangeCryKey uint32 = 2
	POVersion      uint32 = 3
	POEnd          uint32 = 4
)

Variables

View Source
var File_packOper_pro_proto protoreflect.FileDescriptor

Functions

func GetKey

func GetKey(Data []byte) []byte

func GetSha256Hex

func GetSha256Hex(data []byte) string

func GetSha256_32bytes

func GetSha256_32bytes(data []byte) [32]byte

func IsChangeCryKey

func IsChangeCryKey(Data []byte) bool

func IsPOGen

func IsPOGen(Data []byte) bool

func IsPOVersion

func IsPOVersion(Data []byte) bool

func JsonPacking

func JsonPacking(data []byte) []byte

func JsonPacking_OperChangeKey

func JsonPacking_OperChangeKey() []byte

func JsonPacking_OperVersion

func JsonPacking_OperVersion() []byte

func NewCompresser

func NewCompresser() *compresser

func UnPack_Oper

func UnPack_Oper(data []byte) *packOper

Types

type Pack

type Pack struct {
	Data []byte
}

type PackOperPro

type PackOperPro struct {
	OperType uint32 `protobuf:"varint,1,opt,name=OperType,proto3" json:"OperType,omitempty"`
	OperData []byte `protobuf:"bytes,2,opt,name=OperData,proto3" json:"OperData,omitempty"`
	Data     []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	Rand     []byte `protobuf:"bytes,4,opt,name=Rand,proto3" json:"Rand,omitempty"`
	HashHex  []byte `protobuf:"bytes,5,opt,name=HashHex,proto3" json:"HashHex,omitempty"`
	// contains filtered or unexported fields
}

type packOper struct { OperType uint8 OperData []byte Data []byte Rand []byte HashHex []byte }

func (*PackOperPro) Descriptor deprecated

func (*PackOperPro) Descriptor() ([]byte, []int)

Deprecated: Use PackOperPro.ProtoReflect.Descriptor instead.

func (*PackOperPro) GetData

func (x *PackOperPro) GetData() []byte

func (*PackOperPro) GetHashHex

func (x *PackOperPro) GetHashHex() []byte

func (*PackOperPro) GetOperData

func (x *PackOperPro) GetOperData() []byte

func (*PackOperPro) GetOperType

func (x *PackOperPro) GetOperType() uint32

func (*PackOperPro) GetRand

func (x *PackOperPro) GetRand() []byte

func (*PackOperPro) ProtoMessage

func (*PackOperPro) ProtoMessage()

func (*PackOperPro) ProtoReflect

func (x *PackOperPro) ProtoReflect() protoreflect.Message

func (*PackOperPro) Reset

func (x *PackOperPro) Reset()

func (*PackOperPro) String

func (x *PackOperPro) String() string

type PackRand

type PackRand struct {
	Pack
	Rand int64
}

Data, Rand

type PackRandHash

type PackRandHash struct {
	PackRand
	HashHex string
}

Data, Rand, HashHex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL