Class WritePayload (2.15.1)

An opaque representation of the data for an object payload.

While applications do not need to create instances of this class, they may need to use it in their mocks, to validate the contents of their requests.

Constructors

WritePayload()

Creates an empty payload.

Functions

empty() const

Returns true if the payload has no data.

Returns
Type Description
bool

size() const

Returns the total size of the data.

Returns
Type Description
std::size_t

payload() const

Returns views into the data.

Note that changing *this in any way (assignment, destruction, etc.) invalidates all the returned buffers.

Returns
Type Description
std::vector< absl::string_view >