Skip to content

Commit

Permalink
Update unconstrained.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
crStiv authored Dec 17, 2024
1 parent 10c7061 commit a6c75ae
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion crates/recursion/core/src/runtime/unconstrained.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
use super::io::StdinBuffer;

pub struct UnconstrainedBlock {
pub stdin_buffer: StdinBuffer,
// other fields, if any...
}

impl UnconstrainedBlock {
// Adding a new method to write to the front of the queue
pub fn new() -> Self {
Self {
stdin_buffer: StdinBuffer::new(),
// initialization of other fields...
}
}

pub fn write_front(&mut self, data: Vec<u8>) {
self.stdin_buffer.write_front(data);
}
Expand Down

0 comments on commit a6c75ae

Please sign in to comment.