mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 16:29:58 +00:00
TUN-528: Move cloudflared into a separate repo
This commit is contained in:
10
vendor/zombiezen.com/go/capnproto2/capnpc-go/templates/structUintField
generated
vendored
Normal file
10
vendor/zombiezen.com/go/capnproto2/capnpc-go/templates/structUintField
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
func (s {{.Node.Name}}) {{.Field.Name|title}}() uint{{.Bits}} {
|
||||
{{template "_checktag" . -}}
|
||||
return s.Struct.Uint{{.Bits}}({{.Offset}}){{with .Default}} ^ {{.}}{{end}}
|
||||
}
|
||||
|
||||
func (s {{.Node.Name}}) Set{{.Field.Name|title}}(v uint{{.Bits}}) {
|
||||
{{template "_settag" . -}}
|
||||
s.Struct.SetUint{{.Bits}}({{.Offset}}, v{{with .Default}}^{{.}}{{end}})
|
||||
}
|
||||
|
Reference in New Issue
Block a user