| // WARNING: This file is machine generated by fidlgen. |
| |
| // fidl_experiment = output_index_json |
| |
| package aliases |
| |
| import ( |
| testsomeotherlibrary "fidl/test/someotherlibrary" |
| _zx "syscall/zx" |
| _bindings "syscall/zx/fidl" |
| ) |
| |
| type ReferenceMe = testsomeotherlibrary.ReferenceMe |
| type AliasOfChannel = _zx.Channel |
| type Channel = _zx.Channel |
| type U32 = uint32 |
| type VecOfStrings = []string |
| type VecOfStringsAtMost5 = []string |
| |
| var _ _bindings.Enum = ObjType(0) |
| |
| type ObjType uint32 |
| |
| const ( |
| ObjTypeNone ObjType = 0 |
| ObjTypeChannel ObjType = 4 |
| ) |
| |
| func (_ ObjType) I_EnumValues() []ObjType { |
| return []ObjType{ |
| ObjTypeNone, |
| ObjTypeChannel, |
| } |
| } |
| |
| func (_ ObjType) I_EnumIsStrict() bool { |
| return true |
| } |
| |
| func (x ObjType) IsUnknown() bool { |
| switch x { |
| case 0: |
| return false |
| case 4: |
| return false |
| } |
| return true |
| } |
| |
| func (x ObjType) String() string { |
| switch x { |
| case 0: |
| return "None" |
| case 4: |
| return "Channel" |
| } |
| return "Unknown" |
| } |
| |
| type ExampleOfUseOfAliases struct { |
| _ struct{} `fidl:"s" fidl_size_v2:"88" fidl_alignment_v2:"8"` |
| FieldOfU32 uint32 `fidl_offset_v2:"0"` |
| FieldOfVecOfStrings []string `fidl_offset_v2:"8" fidl_bounds:""` |
| FieldOfVecOfStringsAtMostNine []string `fidl_offset_v2:"24" fidl_bounds:"9,"` |
| FieldOfVecOfStringsAtMost5 []string `fidl_offset_v2:"40" fidl_bounds:"5,"` |
| FieldOfVecOfRefMeAtMost5 []testsomeotherlibrary.ReferenceMe `fidl_offset_v2:"56" fidl_bounds:"5"` |
| FieldOfChannel _zx.Channel `fidl_offset_v2:"72" fidl_handle_subtype:"4" fidl_handle_rights:"2147483648" fidl_bounds:"0"` |
| FieldOfClientEnd _zx.Channel `fidl_offset_v2:"76" fidl_handle_subtype:"4" fidl_handle_rights:"2147483648" fidl_bounds:"0"` |
| FieldOfNullableClientEnd _zx.Channel `fidl_offset_v2:"80" fidl_handle_subtype:"4" fidl_handle_rights:"2147483648" fidl_bounds:"1"` |
| } |
| |
| var _mExampleOfUseOfAliases = _bindings.CreateLazyMarshaler(ExampleOfUseOfAliases{}) |
| |
| func (msg *ExampleOfUseOfAliases) Marshaler() _bindings.Marshaler { |
| return _mExampleOfUseOfAliases |
| } |