LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_default_env() specifications

Signature

stream_env_t stream_default_env(const osal_mem_ops_t *mem_ops)
Build a default stream_env_t from injected memory operations.
Definition stream.c:132
Runtime environment for the stream port.
Definition stream_env.h:35

Purpose

Build a default stream_env_t from injected memory operations.

Success

  • Returns a stream_env_t value ret such that ret.mem == mem_ops.

Failure

  • None.

Notes

  • This helper preserves the allocator dependency provided by the caller.
  • This helper does not allocate and only packages the provided dependency into a public stream_env_t.