---
title: "es_message_size(_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_message_size(_:)"
---

# es_message_size(_:)

Calculates the size of a message structure.

## Declaration

```swift
func es_message_size(_ msg: UnsafePointer<es_message_t>) -> Int
```

## Parameters

- `msg`: The message to calculate the size of.

## Return Value

Return Value The calculated size of the message.

## See Also

### Deprecated Functions

- [es_copy_message(_:)](endpointsecurity/es_copy_message(_:).md)
- [es_free_message(_:)](endpointsecurity/es_free_message(_:).md)
