appendInterpolation(_:bytes:format:privacy:)
Appends interpolated pointer data.
Declaration
mutating func appendInterpolation(_ pointer: @autoclosure @escaping () -> UnsafeRawPointer, bytes: @autoclosure @escaping () -> Int, format: OSLogPointerFormat = .none, privacy: OSLogPrivacy = .auto)Parameters
- pointer:
The pointer with the contents you want to add to the message.
- bytes:
The number of bytes in the pointer data.
- format:
The format to apply to the pointer. You format pointers as one of several different options. If you don’t specify this parameter, the system doesn’t format the value. For more information, see Oslogpointerformat.
- privacy:
The privacy level of the information. If you don’t specify this parameter, the system uses the default rules to determine whether to show the information.
Discussion
Don’t call this function directly. The system calls it automatically when interpolating values of this type. When specifying the value in your string, you may include any of the indicated parameters to change the default presentation of that value.