> ## 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.

# XBTCArchiveReader::GetResourceStreamDataStart

> XBTCArchiveReader::GetResourceStreamDataStart (xbtc) — 取得紋理之資料流資料的起始位元組位址。適用於 XBOX 的 Direct3D 12 圖形參考。

取得紋理之資料流資料的起始位元組位址。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
uint8_t* GetResourceStreamDataStart(  
         uint32_t ResourceIdx  
)  
```

<a id="parametersSection" />

### 參數

*ResourceIdx*   \
類型: uint32\_t

紋理以零為起始的索引。

<a id="retvalSection" />

### 傳回值

類型: uint8\_t\*

如果成功，則為封存中指定紋理之資料流資料的起始位元組位址；否則傳回 `nullptr`。

<a id="remarksSection" />

## 備註

此方法會傳回與 XBTC 封存中指定紋理相關聯之壓縮資料流資料的起始位元組位址。如果 `ResourceIdx` 設定為等於或大於封存中紋理數目的值，此方法會傳回 `nullptr`。
只有當資料流位於記憶體中時，才能傳回資料流位址。因此，此方法應搭配 [OpenFromMemory()](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_openfrommemory) 使用，而非 `OpenFromFile()`。
若使用已開啟的檔案，則需要改用搜尋位移。

如需 XBTC 封存內容與結構的詳細資訊，請參閱 [XBOX Texture Compressor (XBTC) 封存檔案規格](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/newfeatures/xbtc/xbtc-archive-format)。

<a id="requirementsSection" />

**標頭:** XBTC.h

**支援的平台**: XBOX One 系列主機與 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[GetResourceCompressedSize](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_getresourcecompressedsize)\
[XBTCArchiveReader](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/xbtcarchivereader)\
[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [List Archived Multiplayer Servers](/api-reference/multiplayerserver/list-archived-multiplayer-servers.md)
- [GetResourceTiling](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourcetiling_public.md)
- [PlayStream 事件](/zh-TW/services/playfab/data-analytics/ingest-data/playstream-events.md)
- [chat_manager::start_processing_stream_state_changes](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_stream_state_changes.md)
