diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-15 02:35:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-15 02:35:05 +0000 |
commit | 154d861542a4f64cfe49e2671f2c8c8c668bca99 (patch) | |
tree | 2951d2cb92323f6e7408270a0eade94470f142ed /tools | |
parent | 018771a9909fb8c35f179c48d836484571570841 (diff) | |
parent | 3d32ad1367b4e84a0822808f44bd7b9f9351db71 (diff) |
Merge release-20200211.0-26-g3d32ad1 (automated)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/go_marshal/marshal/marshal.go | 4 |
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 |