예제 #1
0
func NewResult_SetResult(s *capnp.Segment) (Result_SetResult, error) {
	st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
	if err != nil {
		return Result_SetResult{}, err
	}
	return Result_SetResult{st}, nil
}
예제 #2
0
func NewCommand_SetCommand(s *capnp.Segment) (Command_SetCommand, error) {
	st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
	if err != nil {
		return Command_SetCommand{}, err
	}
	return Command_SetCommand{st}, nil
}