func Load(ls *persist.LoadSaver) Matcher { ret := make(Matcher, ls.LoadTinyUInt()) for i := range ret { ret[i] = loadCM(ls) ret[i].ctype = ctypes[ret[i].conType] ret[i].entryBufs = siegreader.New() } return ret }
func loadCM(ls *persist.LoadSaver) *ContainerMatcher { return &ContainerMatcher{ startIndexes: ls.LoadInts(), conType: containerType(ls.LoadTinyUInt()), nameCTest: loadCTests(ls), parts: ls.LoadInts(), priorities: priority.Load(ls), extension: ls.LoadString(), } }