Contents

nw_framer_message_access_value(_:_:_:)

Accesses a custom value stored in a framer message.

Declaration

func nw_framer_message_access_value(_ message: nw_framer_message_t, _ key: UnsafePointer<CChar>, _ access_value: (UnsafeRawPointer?) -> Bool) -> Bool

Parameters

  • message:

    The message to inspect.

  • key:

    The custom key used to store the value.

  • access_value:

    A block that will deliver the pointer value stored for the key. The block will be called inline. Returns a value to return to the outer function.

Return Value

Returns false if the key was not present, or else the boolean returned by the access block.

See Also

Customizing Framer Messages