Skip to main content

collect_data_stream

Function collect_data_stream 

Source
pub async fn collect_data_stream(
    stream: BoxFissionDataStream,
) -> Result<Bytes, FissionDataStreamError>
Expand description

Collects a data stream into one contiguous byte buffer.

Use this only at shell boundaries that must interoperate with platform APIs requiring contiguous memory. Application-facing large-data flows should keep streaming chunks instead.