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

Method ReadPacket

IceFireDB-SQLProxy/pkg/mysql/packet/conn.go:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (c *Conn) ReadPacket() ([]byte, error) {
96 return c.ReadPacketReuseMem(nil)
97}
98
99func (c *Conn) ReadPacketReuseMem(dst []byte) ([]byte, error) {
100 // Here we use `sync.Pool` to avoid allocate/destroy buffers frequently.

Callers 10

readUntilEOFMethod · 0.95
readAuthResultMethod · 0.95
readOKMethod · 0.95
FieldListMethod · 0.95
readInitialHandshakeMethod · 0.95
PrepareMethod · 0.95
readFirstPartMethod · 0.95
HandleCommandMethod · 0.95

Calls 1

ReadPacketReuseMemMethod · 0.95

Tested by

no test coverage detected