Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: go/src/infra/gae/libs/wrapper/memory/binutils.go

Issue 1229503007: Roll infra/go/src/github.com/luci/luci-go/ to b85c6dd748361e8244122faac44b5beefcd2db37. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fix tests Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | go/src/infra/gae/libs/wrapper/memory/datastore_query.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/wrapper/memory/binutils.go
diff --git a/go/src/infra/gae/libs/wrapper/memory/binutils.go b/go/src/infra/gae/libs/wrapper/memory/binutils.go
index 5d262d20b76c83f0333695c96017a341f4053c61..4acf30b6f54556356046990995a3840455f7fc57 100644
--- a/go/src/infra/gae/libs/wrapper/memory/binutils.go
+++ b/go/src/infra/gae/libs/wrapper/memory/binutils.go
@@ -13,11 +13,11 @@ import (
"appengine"
- "github.com/luci/luci-go/common/funnybase"
+ "github.com/luci/luci-go/common/cmpbin"
)
func writeString(buf *bytes.Buffer, s string) {
- funnybase.WriteUint(buf, uint64(len(s)))
+ cmpbin.WriteUint(buf, uint64(len(s)))
buf.WriteString(s)
}
@@ -30,12 +30,12 @@ func readString(buf *bytes.Buffer) (string, error) {
}
func writeBytes(buf *bytes.Buffer, b []byte) {
- funnybase.WriteUint(buf, uint64(len(b)))
+ cmpbin.WriteUint(buf, uint64(len(b)))
buf.Write(b)
}
func readBytes(buf *bytes.Buffer) ([]byte, error) {
- val, err := funnybase.ReadUint(buf)
+ val, _, err := cmpbin.ReadUint(buf)
if err != nil {
return nil, err
}
@@ -73,11 +73,11 @@ func readFloat64(buf *bytes.Buffer) (float64, error) {
// We truncate this to microseconds and drop the timezone, because that's the
// way that the appengine SDK does it. Awesome, right? Also: its not documented.
func writeTime(buf *bytes.Buffer, t time.Time) {
- funnybase.WriteUint(buf, uint64(t.Unix())*1e6+uint64(t.Nanosecond()/1e3))
+ cmpbin.WriteUint(buf, uint64(t.Unix())*1e6+uint64(t.Nanosecond()/1e3))
}
func readTime(buf *bytes.Buffer) (time.Time, error) {
- v, err := funnybase.ReadUint(buf)
+ v, _, err := cmpbin.ReadUint(buf)
if err != nil {
return time.Time{}, err
}
« no previous file with comments | « DEPS ('k') | go/src/infra/gae/libs/wrapper/memory/datastore_query.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698