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

# BlobInfo

> 包含 XGameSave 包装器所使用的 Blob（文件）的名称和大小。

# Microsoft.Xbox.Wrappers.XGameSave.BlobInfo

包含 XGameSave 包装器所使用的 Blob（文件）的名称和大小。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
struct BlobInfo
{
    BlobInfo(const XGameSaveBlobInfo* info)
    {
        name = info->name;
        size = info->size;
    }
    std::string name;
    uint32_t size;
};
```

<a id="membersSection" />

### 成员

*BlobInfo*<br />类型：XGameSaveBlobInfo

该结构体的构造函数。

*name*<br />类型：std::string

Blob 的名称。

*size*<br />类型：uint32t

Blob 的大小，以字节为单位。

<a id="remarksSection" />

## 备注

你可以通过调用 BlobInfo 构造函数（**BlobInfo::BlobInfo()**）来初始化 `blobinfo` 结构体，向其传入指向 [XGameSaveBlobInfo](/reference/system/xgamesave/structs/xgamesaveblobinfo) 对象的指针。

`XGameSaveBlobInfo` 包含 [XGameSaveBlob](/reference/system/xgamesave/structs/xgamesaveblob) 的属性，并且它是 [XGameSaveBlobInfoCallback](/reference/system/xgamesave/functions/xgamesaveblobinfocallback) 函数的一个参数。

你可以通过 `name` 属性来确保读取的是正确的 Blob。

若要使用足够大的缓冲区来读取 Blob 的内容，请使用 `size` 属性。

<a id="requirementsSection" />

## 要求

**标头：** xgamesavewrappers.hpp

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[Microsoft.Xbox.Wrappers.XGameSave.Provider](/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider)<br />[XGameSave 包装器成员](/reference/system/Wrappers/xgamesave_wrapper_members)


## Related topics

- [QueryContainerBlobs](/zh-CN/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_querycontainerblobs.md)
- [XGameSave Wrapper reference index and member list](/zh-CN/reference/system/Wrappers/xgamesave_wrapper_members.md)
- [XGameSaveBlobInfo](/zh-CN/reference/system/xgamesave/structs/xgamesaveblobinfo.md)
- [XGameSaveEnumerateBlobInfo](/zh-CN/reference/system/xgamesave/functions/xgamesaveenumerateblobinfo.md)
- [XGameSaveBlobInfoCallback](/zh-CN/reference/system/xgamesave/functions/xgamesaveblobinfocallback.md)
