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

Method Encode

IceFireDB-SQLite/pkg/mysql/mysql/mysql_gtid.go:443–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441}
442
443func (s *MysqlGTIDSet) Encode() []byte {
444 var buf bytes.Buffer
445
446 _ = binary.Write(&buf, binary.LittleEndian, uint64(len(s.Sets)))
447
448 for i := range s.Sets {
449 s.Sets[i].encode(&buf)
450 }
451
452 return buf.Bytes()
453}
454
455func (gtid *MysqlGTIDSet) Clone() GTIDSet {
456 clone := &MysqlGTIDSet{

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected