Main Content

getData

Class: matlab.net.http.io.GenericProvider
Namespace: matlab.net.http.io

Next buffer of data to send in HTTP request message from GenericProvider

Syntax

[data,stop] = getData(provider,length)

Description

[data,stop] = getData(provider,length) calls the getDataFcn function, specified by the argument to the GenericProvider constructor. getData is an overridden method of getData.

Input Arguments

expand all

Content provider, specified as a matlab.net.http.io.GenericProvider object.

Length of data that the provider should return, specified as double. For more information, see the length argument in ContentProvider.getData.

Output Arguments

expand all

Next buffer of data, returned as a uint8 vector or empty.

Indicate whether to end transmission, returned as a logical that the provider must set.

Attributes

Accesspublic

Version History

Introduced in R2018a

See Also