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

Method WriteEOF

IceFireDB-SQLite/pkg/mysql/server/resp.go:57–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (c *Conn) WriteEOF() error {
58 data := make([]byte, 4, 9)
59
60 data = append(data, EOF_HEADER)
61 if c.capability&CLIENT_PROTOCOL_41 > 0 {
62 data = append(data, byte(c.warnings), byte(c.warnings>>8))
63 data = append(data, byte(c.status), byte(c.status>>8))
64 }
65
66 return c.WritePacket(data)
67}
68
69func (c *Conn) writeEOF() error {
70 data := make([]byte, 4, 9)

Callers

nothing calls this directly

Calls 1

WritePacketMethod · 0.95

Tested by

no test coverage detected