mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-10-10 15:09:19 +08:00
添加查询结果信息
This commit is contained in:
@@ -121,10 +121,14 @@ func parseLengthEncodedInt(b []byte) (num uint64, isNull bool, n int) {
|
||||
return
|
||||
}
|
||||
|
||||
func extractMysqlPayloadSize(header []byte) int {
|
||||
func parseInt2(header []byte) int {
|
||||
return int(uint32(header[0]) | uint32(header[1])<<8)
|
||||
}
|
||||
|
||||
func parseInt3(header []byte) int {
|
||||
return int(uint32(header[0]) | uint32(header[1])<<8 | uint32(header[2])<<16)
|
||||
}
|
||||
|
||||
func bytesToInt(contents []byte) int {
|
||||
func parseInt4(contents []byte) int {
|
||||
return int(uint32(contents[0]) | uint32(contents[1])<<8 | uint32(contents[2])<<16 | uint32(contents[3])<<24)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user