Files
subcoding/grow/sample.go
2021-11-24 19:52:22 -08:00

15 lines
277 B
Go

package grow
import "github.com/firestuff/subcoding/vm"
type Sample struct {
In []uint64 `yaml:"in,flow"`
Out []uint64 `yaml:"out,flow"`
}
func (s *Sample) SetInputs(state *vm.State) {
for i, val := range s.In {
state.GlobalMemory().WriteUnsigned(uint64(i), val)
}
}