Freigeben über


XblHttpCallGetResponseBodyBytes

Get the response body buffer of the HTTP call.

Syntax

HRESULT XblHttpCallGetResponseBodyBytes(  
         XblHttpCallHandle call,  
         size_t bufferSize,  
         uint8_t* buffer,  
         size_t* bufferUsed  
)  

Parameters

call   _In_
Type: XblHttpCallHandle

The handle of the HTTP call.

bufferSize   _In_
Type: size_t

The response body buffer size being passed in.

buffer   _Out_writes_bytes_to_(bufferSize,bufferUsed)
Type: uint8_t

The buffer to be written to.

bufferUsed   _Out_opt_
Type: size_t*

The actual number of bytes written to the buffer.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.

Remarks

This can only be called after calling XblHttpCallPerformAsync when the HTTP task is completed. This will only be valid if the responsetype passed to PerformAsync was Vector.

Requirements

Header: http_call_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

http_call_c