---
description: "Swift documentation for 'ManagedBuffer'"
root: "/v5.1"
title: "ManagedBuffer"
keywords: ""
layout: "default"
---

<div class="intro-declaration"><code class="language-swift">class ManagedBuffer</code></div><p>A class whose instances contain a property of type <code>Header</code> and raw
storage for an array of <code>Element</code>, whose size is determined at
instance creation.</p>
<div class="discussion comment"><p>Note that the <code>Element</code> array is suitably-aligned <strong>raw m