Пример #1
0
func ReadRootResult_SetResult(msg *capnp.Message) (Result_SetResult, error) {
	root, err := msg.Root()
	if err != nil {
		return Result_SetResult{}, err
	}
	st := capnp.ToStruct(root)
	return Result_SetResult{st}, nil
}
Пример #2
0
func ReadRootCommand_SetCommand(msg *capnp.Message) (Command_SetCommand, error) {
	root, err := msg.Root()
	if err != nil {
		return Command_SetCommand{}, err
	}
	st := capnp.ToStruct(root)
	return Command_SetCommand{st}, nil
}