putData
Class: matlab.net.http.io.BinaryConsumer
Namespace: matlab.net.http.io
Save next buffer of data for BinaryConsumer
Syntax
[len,stop] = putData(consumer,data)
Description
[
stores the next buffer of data. This method is an overridden method of len
,stop
] = putData(consumer
,data
)putData
.
Input Arguments
consumer
— Content consumer
matlab.net.http.io.BinaryConsumer
Content consumer, specified as a matlab.net.http.io.BinaryConsumer
object.
data
— Buffer of raw data in ResponseMessage
nonempty uint8
vector | uint8.empty
| []
(empty double)
Buffer of raw data in a matlab.net.http.ResponseMessage
object, specified
as a nonempty uint8
vector, uint8.empty
, or
[]
. For more information about these values, see the
data input argument for the
ContentConsumer.putData
method.
When MATLAB® calls this function, it provides data as a
uint8
vector. This function appends the vector at the
position CurrentLength
+1 in
Response.Body.Data
, increasing the size of
data
, if necessary, to make room for future
data.
If you call this method to store your own data, then you can provide data
of any type that is compatible with data already
inResponse.Body.Data
.
Output Arguments
len
— Length of data processed
double | []
(empty double)
Length of data processed, returned as double or empty double. For more information, see the
size argument in ContentConsumer.putData
.
stop
— Indicate whether to receive further data
false
(default) | true
Indicate whether to receive further data from this message, returned as
true
or false
. For more
information, see the stop argument in ContentConsumer.putData
.
Attributes
Access | public |
Version History
Introduced in R2018a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)