MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / readUserName

Method readUserName

IceFireDB-SQLite/pkg/mysql/server/handshake_resp.go:99–105  ·  view source on GitHub ↗
(data []byte, pos int)

Source from the content-addressed store, hash-verified

97}
98
99func (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
107func (c *Conn) readDb(data []byte, pos int) (int, error) {
108 if c.capability&CLIENT_CONNECT_WITH_DB != 0 {

Callers 1

readHandshakeResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected