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

Method writeCommandUint32

IceFireDB-SQLite/pkg/mysql/client/req.go:39–55  ·  view source on GitHub ↗
(command byte, arg uint32)

Source from the content-addressed store, hash-verified

37}
38
39func (c *Conn) writeCommandUint32(command byte, arg uint32) error {
40 c.ResetSequence()
41
42 return c.WritePacket([]byte{
43 0x05, // 5 bytes long
44 0x00,
45 0x00,
46 0x00, // sequence
47
48 command,
49
50 byte(arg),
51 byte(arg >> 8),
52 byte(arg >> 16),
53 byte(arg >> 24),
54 })
55}
56
57func (c *Conn) writeCommandStrStr(command byte, arg1 string, arg2 string) error {
58 c.ResetSequence()

Callers 1

CloseMethod · 0.45

Calls 2

ResetSequenceMethod · 0.95
WritePacketMethod · 0.95

Tested by

no test coverage detected