blob: 53234f5b9290ba163f6171688acd94a4eac91f80 [file] [log] [blame]
// Code generated by fidlgen; DO NOT EDIT.
package example
import (
someotherlibrary "fidl/someotherlibrary"
_zx "syscall/zx"
_bindings "syscall/zx/fidl"
)
type ObjType uint32
const (
ObjTypeNone ObjType = 0
ObjTypeChannel ObjType = 4
)
func (_ ObjType) I_EnumValues() []ObjType {
return []ObjType{
ObjTypeNone,
ObjTypeChannel,
}
}
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_v1:"120" fidl_alignment_v1:"8"`
FieldOfU32 uint32 `fidl_offset_v1:"0"`
FieldOfVecAtMostFiveOfString []string `fidl_offset_v1:"8" fidl_bounds:"5,"`
FieldOfVecAtMostFiveOfUint32 []uint32 `fidl_offset_v1:"24" fidl_bounds:"5"`
FieldOfVecOfStrings []string `fidl_offset_v1:"40" fidl_bounds:""`
FieldOfVecOfStringsAtMostNine []string `fidl_offset_v1:"56" fidl_bounds:"9,"`
FieldOfVecOfStringsAtMost5 []string `fidl_offset_v1:"72" fidl_bounds:"5,"`
FieldOfVecAtMost5OfReferenceMe []someotherlibrary.ReferenceMe `fidl_offset_v1:"88" fidl_bounds:"5"`
FieldOfChannel _zx.Handle `fidl_offset_v1:"104" fidl_handle_subtype:"0" fidl_handle_rights:"2147483648" fidl_bounds:"0"`
FieldOfClientEnd _zx.Handle `fidl_offset_v1:"108" fidl_handle_subtype:"0" fidl_handle_rights:"2147483648" fidl_bounds:"0"`
FieldOfNullableClientEnd _zx.Handle `fidl_offset_v1:"112" fidl_handle_subtype:"0" fidl_handle_rights:"2147483648" fidl_bounds:"1"`
}
var _mExampleOfUseOfAliases = _bindings.CreateLazyMarshaler(ExampleOfUseOfAliases{})
func (msg *ExampleOfUseOfAliases) Marshaler() _bindings.Marshaler {
return _mExampleOfUseOfAliases
}