From a0948315bebc8f619d9aefc2c8d5d951982bf3a0 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Thu, 1 Oct 2026 19:05:32 -0500 Subject: [PATCH] Add Buffer component --- src/sandbox/component.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/sandbox/component.rs b/src/sandbox/component.rs index 1cfffc0..bed1863 100644 --- a/src/sandbox/component.rs +++ b/src/sandbox/component.rs @@ -123,3 +123,19 @@ impl From for ComponentBuilder<'static> { peg.build() } } + +pub struct Buffer { + _private: (), +} + +impl Buffer { + pub fn new() -> Self { + Self { _private: () } + } + + pub fn build(self) -> ComponentBuilder<'static> { + ComponentBuilder::new("MHG.Buffer_WithOutput") + .num_inputs(1) + .num_outputs(1) + } +}