Beispiel #1
0
// NewResult_GetResult creates a new list of Result_GetResult.
func NewResult_GetResult_List(s *capnp.Segment, sz int32) (Result_GetResult_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
	if err != nil {
		return Result_GetResult_List{}, err
	}
	return Result_GetResult_List{l}, nil
}
Beispiel #2
0
// NewCommand_GetCommand creates a new list of Command_GetCommand.
func NewCommand_GetCommand_List(s *capnp.Segment, sz int32) (Command_GetCommand_List, error) {
	l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
	if err != nil {
		return Command_GetCommand_List{}, err
	}
	return Command_GetCommand_List{l}, nil
}