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

Method readFirstPart

IceFireDB-SQLite/pkg/mysql/server/handshake_resp.go:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (c *Conn) readFirstPart() ([]byte, int, error) {
48 data, err := c.ReadPacket()
49 if err != nil {
50 return nil, 0, err
51 }
52
53 return c.decodeFirstPart(data)
54}
55
56func (c *Conn) decodeFirstPart(data []byte) ([]byte, int, error) {
57 pos := 0

Callers 2

readHandshakeResponseMethod · 0.95
decodeFirstPartMethod · 0.95

Calls 2

ReadPacketMethod · 0.95
decodeFirstPartMethod · 0.95

Tested by

no test coverage detected