<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "s:8CoreMIDI34UnsafeMutableMIDIPacketListPointerV"
  },
  "title" : "UnsafeMutableMIDIPacketListPointer"
}
-->

# UnsafeMutableMIDIPacketListPointer

```
struct UnsafeMutableMIDIPacketListPointer
```

## Topics

### Initializers

[`init(UnsafeMutablePointer<MIDIPacketList>, byteSize: Int)`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/init(_:byteSize:)-8acwt)

[`init?(UnsafeMutablePointer<MIDIPacketList>?, byteSize: Int)`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/init(_:byteSize:)-96k5n)

### Instance Properties

[`var count: Int`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/count)

[`var lastPacket: UnsafeMutablePointer<MIDIPacket>?`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/lastPacket)

[`var listSizeInBytes: Int`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/listSizeInBytes)

### Instance Methods

[`func append(timestamp: MIDITimeStamp, data: [UInt8]) -> UnsafePointer<MIDIPacket>?`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/append(timestamp:data:))

[`func clear()`](/documentation/CoreMIDI/UnsafeMutableMIDIPacketListPointer/clear())

## Relationships

### Conforms To

[`Sequence`](/documentation/Swift/Sequence)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)