SmartGlassAuxiliaryStream.Read Method

Reads any available data already received from the SmartGlass-enabled device by the auxiliary stream, up to the maximum amount specified.

Syntax

public:
IBuffer^ Read(
         uint32 maxBytes,
         out SmartGlassAuxiliaryStreamReadStats readStats
)  

Parameters

maxBytes
Type: uint32 

 Specifies the maximum number of bytes that you want to read from the auxiliary stream.

readStats
Type: SmartGlassAuxiliaryStreamReadStats 

Receives information about the numver of bytes received from the auxiliary stream and the number of bytes available to read from the stream.

Return value

Type: IBuffer 

Represents a referenced array of bytes read from the auxiliary stream.

Remarks

Both the Xbox One console and the SmartGlass-enabled device must open the auxiliary stream before you can start reading data from the stream.

Requirements

Namespace: Windows.Xbox.SmartGlass

Metadata: windows.winmd

See also

Reference

SmartGlassAuxiliaryStream.Write

SmartGlassAuxiliaryStream.Open

SmartGlassAuxiliaryStream Class

SmartGlassAuxiliaryStream Members

Windows.Xbox.SmartGlass Namespace