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

Signature

const osal_mem_ops_t *mem,
const stream_env_t *port_env);
dynamic_buffer_stream_env_t dynamic_buffer_stream_default_env(const osal_mem_ops_t *mem, const stream_env_t *port_env)
Return the default injected environment for the dynamic_buffer_stream adapter.
Injected dependencies for the dynamic_buffer_stream adapter.
Runtime environment for the stream port.
Definition stream_env.h:35

Purpose

Build a default environment for the dynamic_buffer_stream adapter.

Preconditions

  • mem must point to a valid OSAL memory operations table.
  • port_env must point to a valid stream port environment object.

Invalid arguments

  • None.

Success

Failure

  • None.

Notes

  • This helper packages borrowed dependencies into a value-initialized dynamic_buffer_stream_env_t.
  • The returned environment does not take ownership of any pointer passed as argument.
  • This helper does not allocate.