aboutsummaryrefslogtreecommitdiff
path: root/atom/atom_test.go
diff options
context:
space:
mode:
authorIan Cottrell <iancottrell@google.com>2015-03-18 17:31:07 +0000
committerIan Cottrell <iancottrell@google.com>2015-03-20 12:47:12 +0000
commitac761a60af2f126ed80d9a29b5c328bf74163efa (patch)
tree603ec167d9d7a84ba2e40863d00904a95df97a37 /atom/atom_test.go
parent04872aaa44c69d3adce68feb0b4c613c2fd61be4 (diff)
downloadgpu-ac761a60af2f126ed80d9a29b5c328bf74163efa.tar.gz
Split the variable size integer writer from the object hierarchy encoder
Change-Id: I587cc45e08d2b49a88b93e1816d0a22def405356
Diffstat (limited to 'atom/atom_test.go')
-rw-r--r--atom/atom_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/atom/atom_test.go b/atom/atom_test.go
index 6149b5cdf..a002f06f3 100644
--- a/atom/atom_test.go
+++ b/atom/atom_test.go
@@ -29,13 +29,13 @@ func (testAtomA) TypeID() TypeID { return testAtomIDA }
func (a *testAtomA) ContextID() ContextID { return a.Context }
func (a *testAtomA) Info() string { return "" }
func (a *testAtomA) Flags() Flags { return 0 }
-func (a *testAtomA) Encode(e *binary.Encoder) error {
+func (a *testAtomA) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.Int32(a.Int32)
}
-func (a *testAtomA) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomA) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {
@@ -54,13 +54,13 @@ func (testAtomB) TypeID() TypeID { return testAtomIDB }
func (a *testAtomB) ContextID() ContextID { return a.Context }
func (a *testAtomB) Info() string { return "" }
func (a *testAtomB) Flags() Flags { return 0 }
-func (a *testAtomB) Encode(e *binary.Encoder) error {
+func (a *testAtomB) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.Bool(a.Bool)
}
-func (a *testAtomB) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomB) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {
@@ -79,13 +79,13 @@ func (testAtomC) TypeID() TypeID { return testAtomIDC }
func (a *testAtomC) ContextID() ContextID { return a.Context }
func (a *testAtomC) Info() string { return "" }
func (a *testAtomC) Flags() Flags { return 0 }
-func (a *testAtomC) Encode(e *binary.Encoder) error {
+func (a *testAtomC) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.String(a.String)
}
-func (a *testAtomC) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomC) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {