---
title: length
framework: coremidi
role: symbol
role_heading: Instance Property
path: coremidi/midipacket/length
---

# length

The number of valid MIDI data bytes in this packet.

## Declaration

```swift
var length: UInt16
```

## See Also

### Configuring a Packet

- [timeStamp](coremidi/midipacket/timestamp.md)
- [data](coremidi/midipacket/data.md)
