MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / new

Method new

2019/src/intcoder.rs:21–28  ·  view source on GitHub ↗
(program: &[i64])

Source from the content-addressed store, hash-verified

19
20impl IntCoder {
21 pub fn new(program: &[i64]) -> Self {
22 Self {
23 ram: program.into(),
24 input: VecDeque::new(),
25 rel_base: 0,
26 pc: 0
27 }
28 }
29
30 pub fn execute(&mut self) -> ExitCode {
31 loop {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected