func store(f *seq.Imp, N string) { // pseq.Erase(N) n := f.Codelen() buf := make([]byte, n) buf = f.Encode() file := pseq.New(buf) file.Name(N) file.Put(buf) file.Terminate() }
func load(f *seq.Imp, N string) { // n := pseq.Length(N) if n == 0 { return } buf := make([]byte, n) file := pseq.New(buf) file.Name(N) buf = file.Get().([]byte) file.Terminate() f.Decode(buf) }