OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package memory | 5 package memory |
6 | 6 |
7 import ( | 7 import ( |
8 "encoding/hex" | 8 "encoding/hex" |
9 "flag" | 9 "flag" |
10 "fmt" | 10 "fmt" |
11 "io/ioutil" | 11 "io/ioutil" |
12 "os" | 12 "os" |
13 "path/filepath" | 13 "path/filepath" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 t.visitNumber++ | 189 t.visitNumber++ |
190 | 190 |
191 t.w(".VisitItemsAscend(%#v, %t, func(i *gkvlite.Item) bool{ return true
}) // BEGIN VisitItemsAscend(%d)", target, withValue, vnum) | 191 t.w(".VisitItemsAscend(%#v, %t, func(i *gkvlite.Item) bool{ return true
}) // BEGIN VisitItemsAscend(%d)", target, withValue, vnum) |
192 defer t.w("// END VisitItemsAscend(%d)", vnum) | 192 defer t.w("// END VisitItemsAscend(%d)", vnum) |
193 t.i.VisitItemsAscend(target, withValue, visitor) | 193 t.i.VisitItemsAscend(target, withValue, visitor) |
194 } | 194 } |
195 | 195 |
196 func (t *tracingMemCollectionImpl) IsReadOnly() bool { | 196 func (t *tracingMemCollectionImpl) IsReadOnly() bool { |
197 return t.i.IsReadOnly() | 197 return t.i.IsReadOnly() |
198 } | 198 } |
OLD | NEW |