summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-15 02:35:05 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-15 02:35:05 +0000
commit154d861542a4f64cfe49e2671f2c8c8c668bca99 (patch)
tree2951d2cb92323f6e7408270a0eade94470f142ed /tools
parent018771a9909fb8c35f179c48d836484571570841 (diff)
parent3d32ad1367b4e84a0822808f44bd7b9f9351db71 (diff)
Merge release-20200211.0-26-g3d32ad1 (automated)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/go_marshal/marshal/marshal.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/go_marshal/marshal/marshal.go b/tools/go_marshal/marshal/marshal.go
index 10614ec4d..e521b50bd 100755
--- a/tools/go_marshal/marshal/marshal.go
+++ b/tools/go_marshal/marshal/marshal.go
@@ -21,6 +21,8 @@
package marshal
import (
+ "io"
+
"gvisor.dev/gvisor/pkg/usermem"
)
@@ -42,6 +44,8 @@ type Task interface {
// Marshallable represents a type that can be marshalled to and from memory.
type Marshallable interface {
+ io.WriterTo
+
// SizeBytes is the size of the memory representation of a type in
// marshalled form.
SizeBytes() int