示例#1
0
func (s HandleFactory_newHandle_Results) SetHandle(v Handle) error {
	if v.Client == nil {
		return s.Struct.SetPtr(0, capnp.Ptr{})
	}
	seg := s.Segment()
	in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	return s.Struct.SetPtr(0, in.ToPtr())
}
示例#2
0
func (s Echoer_echo_Results) SetCap(v CallOrder) error {
	if v.Client == nil {
		return s.Struct.SetPtr(0, capnp.Ptr{})
	}
	seg := s.Segment()
	in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	return s.Struct.SetPtr(0, in.ToPtr())
}
func (s RealmGateway_export_Params) SetCap(v Persistent) error {
	if v.Client == nil {
		return s.Struct.SetPtr(0, capnp.Ptr{})
	}
	seg := s.Segment()
	in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	return s.Struct.SetPtr(0, in.ToPtr())
}
示例#4
0
func (s ConnectRequest) SetAi(v Ai) error {
	if v.Client == nil {
		return s.Struct.SetPtr(1, capnp.Ptr{})
	}
	seg := s.Segment()
	in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	return s.Struct.SetPtr(1, in.ToPtr())
}
示例#5
0
func (s Echoer_echo_Results) SetCap(v CallOrder) error {

	seg := s.Segment()
	if seg == nil {

		return nil
	}
	ci := seg.Message().AddCap(v.Client)
	return s.Struct.SetPointer(0, capnp.NewInterface(seg, ci))
}
示例#6
0
func (s HandleFactory_newHandle_Results) SetHandle(v Handle) error {

	seg := s.Segment()
	if seg == nil {

		return nil
	}
	ci := seg.Message().AddCap(v.Client)
	return s.Struct.SetPointer(0, capnp.NewInterface(seg, ci))
}
示例#7
0
func (s ConnectRequest) SetAi(v Ai) error {

	seg := s.Segment()
	if seg == nil {

		return nil
	}
	var in capnp.Interface
	if v.Client != nil {
		in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	}
	return s.Struct.SetPointer(1, in)
}
示例#8
0
func (s HashFactory_newSha1_Results) SetHash(v Hash) error {

	seg := s.Segment()
	if seg == nil {

		return nil
	}
	var in capnp.Interface
	if v.Client != nil {
		in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	}
	return s.Struct.SetPointer(0, in)
}
示例#9
0
func (s Echoer_echo_Results) SetCap(v CallOrder) error {

	seg := s.Segment()
	if seg == nil {

		return nil
	}
	var in capnp.Interface
	if v.Client != nil {
		in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
	}
	return s.Struct.SetPointer(0, in)
}