An opaque representation of the data for an object payload.
Constructors
WritePayload()
Creates an empty payload.
WritePayload(std::string)
Creates a payload from p.
| Parameter | |
|---|---|
| Name | Description |
p |
std::string
|
WritePayload(std::vector< T >)
Creates a payload from p.
| Parameters | |
|---|---|
| Name | Description |
p |
std::vector< T >
the resulting object takes ownership of the data in |
typename T |
must be either:
|
WritePayload(absl::Cord)
Creates a payload from impl.
| Parameter | |
|---|---|
| Name | Description |
impl |
absl::Cord
|
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 > |
|