D3DReadBufferToBlob

Reads data from a buffer into an ID3DBlob.

Syntax

HRESULT D3DReadBufferToBlob(
         const unsigned char *pBuffer,
         ULARGE_INTEGER uBytes,
         ID3DBlob **ppContents
)  

Parameters

pBuffer
Type: unsigned char *

[in] The data buffer to read from.

uBytes
Type: ULARGE_INTEGER 

[in] The number of bytes to read.

ppContents
Type: ID3DBlob **

[out] A pointer to a variable that receives a pointer to the ID3DBlob interface that contains information read from the buffer. You can use this ID3DBlob interface to access the file information and pass it to other compiler functions.

Return value

Type: HRESULT 

Returns one of the following Direct3D 10 Return Codes.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.