PackageTransferManager.FindChunkFromFile Method

Gets a chunk ID from a specified file.

Syntax

public:
uint32 FindChunkFromFile(
         String^ path
)  

Parameters

path
Type: String 

 The path for the file to search.

Return value

Type: uint32 

 The chunk ID.

Remarks

This method can take a long time to complete and should only be called when handling a streaming install scenario. Indexing your own chunkIds will result in better performance, and higher degree of control over install order.

The return value of the method should be cached to avoid multiple calls to this method.

Note Prior to the August 2016 Xbox One XDK (10.0.14393.1027), the FindChunkFromFile API could return an incorrect chunk number. This behavior varied depending on the size of the file, position within the chunk, and overall size of the package. Titles built with earlier versions of the XDK will get the old behavior. If a title put a workaround in place due to this erroneous result, any workaround should be removed when building with the August 2016 Xbox One XDK (10.0.14393.1027) and beyond.

Requirements

Namespace: Windows.Xbox.Management.Deployment

Metadata: windows.winmd

See also

Reference

PackageTransferManager Class

PackageTransferManager Members

Windows.Xbox.Management.Deployment Namespace