Module OutputChannelStateDTO

Module OutputChannelStateDTO 

Source
Expand description

§OutputChannelStateDTO

§RESPONSIBILITY

  • Data transfer object for output channel state
  • Serializable format for gRPC/IPC transmission
  • Used by Mountain to track output channel lifecycle and content

§FIELDS

  • Name: Channel display name
  • LanguageIdentifier: Language for syntax highlighting
  • Buffer: Buffered output content
  • IsVisible: Channel visibility status

Structs§

OutputChannelStateDTO
Represents the complete state of a single output channel, including its buffered content and visibility status.

Constants§

MAX_BUFFER_SIZE 🔒
Maximum buffer size per channel (prevents memory exhaustion) Set to 10MB to prevent unbounded memory growth from excessive output accumulation.
MAX_CHANNEL_NAME_LENGTH 🔒
Maximum channel name length
MAX_LANGUAGE_ID_LENGTH 🔒
Maximum language identifier length

Functions§

FormatBytes 🔒
Formats a byte count into a human-readable string.