Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

BufferedStreamCreationError

Preserves source ownership when a buffered adapter cannot be created. Caller owns Source and may retry with a different capacity. No stream operation occurs during construction. This record adds no synchronization.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.io

import std.io;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

BufferedStreamCreationError

pub final class BufferedStreamCreationError<S>

Preserves source ownership when a buffered adapter cannot be created. Caller owns Source and may retry with a different capacity. No stream operation occurs during construction. This record adds no synchronization. S: Owned concrete stream type.

BufferedStreamCreationError.Reason

pub Reason: IoError;

Portable capacity/storage failure; zero bytes transferred.

BufferedStreamCreationError.Source

pub Source: S;

Original unconsumed source available for explicit retry.

BufferedStreamCreationError.init

pub init(Reason: IoError, mut Source: S)

Transfers the source into a recoverable creation failure. Reason: Portable creation failure. Source: Unconsumed stream.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library