MessageBody
A body of message descriptors.
struct MessageBody
Creating a Body
init(descriptors: [any Mach.MessageDescriptor]
) Creates a new message body with a list of descriptors.
Working With Body Pointers
init(fromPointer: UnsafePointer<mach_msg_body_t>
) Represents an existing body.
func serialize(
) -> UnsafePointer<mach_msg_body_t> Allocates a buffer for the body, copies the count and descriptors into it, and returns a pointer to the buffer.
Working With Descriptors
var descriptors: [any Mach.MessageDescriptor]
The descriptors in the body.
protocol MessageDescriptor
A descriptor for a message body.