> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ApuHeapState

> ApuHeapState

# ApuHeapState

APU 的堆積狀態。

## 語法

```cpp theme={null}
typedef struct ApuHeapState {  
    UINT32 bytesFree;  
    UINT32 bytesAllocated;  
    UINT32 bytesLost;  
    UINT32 maximumBlockSizeAvailable;  
    UINT32 allocationCount;  
} ApuHeapState  
```

### 成員

*bytesFree*\
類型：UINT32

所有未配置區域的大小。

*bytesAllocated*\
類型：UINT32

遊戲可見之所有已配置區域的大小。

*bytesLost*\
類型：UINT32

因對齊要求以及因過小而無法配置之片段區塊所損失的所有記憶體大小。

*maximumBlockSizeAvailable*\
類型：UINT32

可用的最大區塊。由於對齊需求，實際可用空間可能較小。

*allocationCount*\
類型：UINT32

所有已配置區塊的計數。

## 備註

此結構由 [ApuHeapGetState](/zh-TW/reference/audio/apu/functions/apuheapgetstate) 輸出。

APU 堆積由 [ApuCreateHeap](/zh-TW/reference/audio/apu/functions/apucreateheap) 建立。堆積會在處理序的整個存留期間持續存在。

## 需求

**標頭：** apu.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ApuHeapGetState](/zh-TW/reference/audio/apu/functions/apuheapgetstate)\
[APU](/zh-TW/reference/audio/apu/apu_members)


## Related topics

- [ApuHeapState](/reference/audio/apu/structs/apuheapstate.md)
- [ApuHeapGetState](/reference/audio/apu/functions/apuheapgetstate.md)
