Exemple #1
0
func NewRootResult_SetResult(s *capnp.Segment) (Result_SetResult, error) {
	st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
	if err != nil {
		return Result_SetResult{}, err
	}
	return Result_SetResult{st}, nil
}
Exemple #2
0
func NewRootCommand_SetCommand(s *capnp.Segment) (Command_SetCommand, error) {
	st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
	if err != nil {
		return Command_SetCommand{}, err
	}
	return Command_SetCommand{st}, nil
}