Documentation
¶
Index ¶
- Constants
- func ByteToFloat32(data []byte) (ret float32)
- func ByteToInt16(data []byte) (ret int16)
- func ByteToInt32(data []byte) (ret int32)
- func ByteToUint16(data []byte) (ret uint16)
- func ByteToUint32(data []byte) (ret uint32)
- func EncodeByteMsg(protocol byte, msgcode byte, body []byte) []byte
- func EncodeByteString(str string) []byte
- func EncodeByteTag(ttype byte, tagname []byte, tagvalue []byte) []byte
- func EncodeByteTagInt(tagname []byte, tagvalue uint32) []byte
- func EncodeByteTagName(nbuf []byte) []byte
- func EncodeByteTagNameInt(val byte) []byte
- func EncodeByteTagNameStr(val string) []byte
- func EncodeByteTagString(tagname []byte, tagvalue string) []byte
- func Float32ToByte(data float32) (ret []byte)
- func HighId(addr string) (ret uint32)
- func Int16ToByte(data int16) (ret []byte)
- func Int32ToByte(data int32) (ret []byte)
- func SliceBuf(buf []byte, from int, to int, newbuf *[]byte) bool
- func StringToByte(val string) []byte
- func UInt16ToByte(data uint16) (ret []byte)
- func UInt32ToByte(data uint32) (ret []byte)
- type Constraint
- type OneTag
- type SockSrv
- type SockSrvClient
Constants ¶
View Source
const ( C_NONE constrainttype = iota C_MAIN C_AND C_OR C_NOT C_CODEC C_MINSIZE C_MAXSIZE C_FILETYPE C_FILEEXT C_AVAIL )
Variables ¶
This section is empty.
Functions ¶
func ByteToFloat32 ¶
func ByteToInt16 ¶
func ByteToInt32 ¶
func ByteToUint16 ¶
func ByteToUint32 ¶
func EncodeByteString ¶
func EncodeByteTagInt ¶
func EncodeByteTagName ¶
func EncodeByteTagNameInt ¶
func EncodeByteTagNameStr ¶
func EncodeByteTagString ¶
func Float32ToByte ¶
func Int16ToByte ¶
func Int32ToByte ¶
func StringToByte ¶
func UInt16ToByte ¶
func UInt32ToByte ¶
Types ¶
type Constraint ¶
type Constraint struct {
Type constrainttype
Value []byte
Left *Constraint
Right *Constraint
}
type SockSrv ¶
type SockSrv struct {
Host string
Port int
Debug bool
Ssname string
Ssdesc string
Ssmsg string
I2P bool
SAM string
SAMPort int
SupportGzip bool
SupportNewTags bool
SupportUnicode bool
SupportRelSearch bool
SupportTTagInteger bool
SupportLargeFiles bool
SupportObfuscation bool
SQL bool
SqlDriver string
SqlUser string
SqlPW string
SqlAddr string
SqlPort int
SqlDB string
// contains filtered or unexported fields
}
type SockSrvClient ¶
type SockSrvClient struct {
Conn net.Conn
Comp libdeflate.Compressor
DeComp libdeflate.Decompressor
}
Click to show internal directories.
Click to hide internal directories.