Skip to main content

setup_buffer

Function setup_buffer 

Source
pub fn setup_buffer(ctx: &KernelContext, content: &str) -> BufferId
Expand description

Create a buffer with content and register it in the context.

Convenience helper that combines Buffer::from_string() and ctx.buffers.register().