(data []byte, pos int)
| 97 | } |
| 98 | |
| 99 | func (c *Conn) readUserName(data []byte, pos int) (int, error) { |
| 100 | // user name |
| 101 | user := string(data[pos : pos+bytes.IndexByte(data[pos:], 0x00)]) |
| 102 | pos += len(user) + 1 |
| 103 | c.user = user |
| 104 | return pos, nil |
| 105 | } |
| 106 | |
| 107 | func (c *Conn) readDb(data []byte, pos int) (int, error) { |
| 108 | if c.capability&CLIENT_CONNECT_WITH_DB != 0 { |
no outgoing calls
no test coverage detected