> This page is for version 5.0.
> For other versions, use one of these documentation indexes:
> - 5.1 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-1-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 5.0: https://docs.nvidia.com/holoscan/sdk-user-guide/5-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.

# holoscan::schema::PreparedSchemaMemory

> Describe charged prepared storage, excluding allocator bookkeeping and cold peaks.

Describe charged prepared storage, excluding allocator bookkeeping and cold peaks.

```cpp showLineNumbers={false}
#include <holoscan/schema/prepared_schema_storage.hpp>
```

---

## Methods

### total_bytes \[#totalbytes]

```cpp showLineNumbers={false}
std::size_t holoscan::schema::PreparedSchemaMemory::total_bytes() const noexcept
```

Return the total charged bytes; successful preparation checked every addition.

---

## Member variables

| Name              | Type          | Description                                                  |
| ----------------- | ------------- | ------------------------------------------------------------ |
| `native_bytes`    | `std::size_t` | Root native value, including its inline fields.              |
| `inventory_bytes` | `std::size_t` | Facade, state, and private owner/container inventories.      |
| `optional_bytes`  | `std::size_t` | Optional objects and their actual control-block requests.    |
| `container_bytes` | `std::size_t` | Reserved container storage, including parked string buffers. |