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

# MIDIPacketList.Builder

```
class Builder
```

## Topics

### Initializers

[`init(byteSize: Int)`](/documentation/CoreMIDI/MIDIPacketList/Builder/init(byteSize:))

### Instance Properties

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

### Instance Methods

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

[`func clear()`](/documentation/CoreMIDI/MIDIPacketList/Builder/clear())

[`func withUnsafeMutableMIDIPacketListPointer<Result>((inout UnsafeMutableMIDIPacketListPointer) -> Result) -> Result`](/documentation/CoreMIDI/MIDIPacketList/Builder/withUnsafeMutableMIDIPacketListPointer(_:))

[`func withUnsafePointer<Result>((UnsafePointer<MIDIPacketList>) -> Result) -> Result`](/documentation/CoreMIDI/MIDIPacketList/Builder/withUnsafePointer(_:))

---

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)