Contents

appendInterpolation(_:bytes:format:privacy:attributes:)

Appends interpolated pointer data with the specified attributes.

Declaration

mutating func appendInterpolation(_ pointer: @autoclosure  @escaping () -> UnsafeRawPointer, bytes: @autoclosure  @escaping () -> Int, format: OSLogPointerFormat = .none, privacy: OSLogPrivacy = .auto, attributes: String)

Parameters

  • pointer:

    The interpolated pointer data. The system automatically wraps this value in a closure.

  • bytes:

    The size of the pointer in bytes.

  • format:

    The format to apply to the value when the system renders it in a log message. For more information, see Oslogpointerformat. The default value is None.

  • privacy:

    The privacy level of the value, which the system applies when it renders the value in a log message. For more information, see Oslogprivacy. The default value is Auto.

  • attributes:

    Additional information about the value. Tools that process log messages interpret these attributes, which you typically provide as key-value pairs. For example, Instruments processes any e_ngineering types_ you embed in this value. For more information, see Devcd5016d31.

Discussion

See Also

Appending Pointer Data