Documentation ¶
Index ¶
- Constants
- Variables
- func BufGet() *bytes.Buffer
- func BufPut(b *bytes.Buffer)
- func Byte2Int(data []byte) int
- func ByteGet() (b []byte)
- func BytePut(buf []byte)
- func Decode(src []byte) ([]byte, error)
- func DecodeBuffer(src []byte, dest *bytes.Buffer, offset int) int
- func EccSharedSecret(public_key []byte, private_key []byte) ([32]byte, error)
- func GetLogStartPos(src []byte, count int) int
- func Int2Byte(data int) (ret []byte)
- func IsGoodLogBuffer(src []byte, offset, count int) bool
- type LeakyBuf
Constants ¶
View Source
const ( MAGIC_NO_COMPRESS_START = 0x03 MAGIC_NO_COMPRESS_START1 = 0x06 MAGIC_NO_COMPRESS_NO_CRYPT_START = 0x08 MAGIC_COMPRESS_START = 0x04 MAGIC_COMPRESS_START1 = 0x05 MAGIC_COMPRESS_START2 = 0x07 MAGIC_COMPRESS_NO_CRYPT_START = 0x09 MAGIC_END = 0x00 PRIV_KEY = "145aa7717bf9745b91e9569b80bbf1eedaa6cc6cd0e26317d810e35710f44cf8" PUB_KEY = "" /* 128-byte string literal not displayed */ )
Variables ¶
View Source
var ( OP int = 0xffffffff DELTA int = 0x9E3779B9 )
Functions ¶
func EccSharedSecret ¶
func GetLogStartPos ¶
func IsGoodLogBuffer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.