func (dm *clusterMutation) Serialize(writer typedio.Writer) { writer.WriteInt64(dm.version) writer.WriteUint16(uint16(len(dm.nodes))) for _, node := range dm.nodes { node.Serialize(writer) } // if data were persisted to disk, we don't make the cluster // since its not new data dm.notify = false }
func (m *Int64Mutation) Serialize(writer typedio.Writer) { writer.WriteInt64(m.val) }