| //////////////////////////////////////////////////////////////////////////////// |
| // Do not modify! |
| // Generated by codergen |
| //////////////////////////////////////////////////////////////////////////////// |
| |
| package interval |
| |
| import ( |
| "android.googlesource.com/platform/tools/gpu/framework/binary" |
| "android.googlesource.com/platform/tools/gpu/framework/binary/registry" |
| "android.googlesource.com/platform/tools/gpu/framework/id" |
| ) |
| |
| // Make sure schema init() runs first |
| import _ "android.googlesource.com/platform/tools/gpu/framework/binary/schema" |
| |
| // force use the id package, because our imports handling is wrong |
| var _ id.ID |
| |
| const ( |
| ixǁU64Range = iota |
| ) |
| |
| var entities [1]binary.Entity |
| |
| var Namespace = registry.NewNamespace() |
| |
| func init() { |
| registry.Global.AddFallbacks(Namespace) |
| Namespace.AddClassOf((*U64Range)(nil)) |
| } |
| |
| type binaryClassU64Range struct{} |
| |
| func (*U64Range) Class() binary.Class { |
| return (*binaryClassU64Range)(nil) |
| } |
| func doEncodeU64Range(e binary.Writer, o *U64Range) { |
| e.Uint64(o.First) |
| e.Uint64(o.Count) |
| } |
| func doDecodeU64Range(d binary.Reader, o *U64Range) { |
| o.First = uint64(d.Uint64()) |
| o.Count = uint64(d.Uint64()) |
| } |
| func doDecodeRawU64Range(d binary.Reader, o *U64Range) { |
| o.First = uint64(d.Uint64()) |
| o.Count = uint64(d.Uint64()) |
| } |
| func (*binaryClassU64Range) Encode(e binary.Encoder, obj binary.Object) { |
| doEncodeU64Range(e, obj.(*U64Range)) |
| } |
| func (*binaryClassU64Range) New() binary.Object { |
| return &U64Range{} |
| } |
| func (*binaryClassU64Range) DecodeTo(d binary.Decoder, obj binary.Object) { |
| doDecodeU64Range(d, obj.(*U64Range)) |
| } |
| func (o *U64Range) WriteSimple(w binary.Writer) { |
| doEncodeU64Range(w, o) |
| } |
| func (o *U64Range) ReadSimple(r binary.Reader) { |
| doDecodeU64Range(r, o) |
| } |
| func (c *binaryClassU64Range) Schema() *binary.Entity { |
| return &entities[ixǁU64Range] |
| } |