Lines Matching refs:buffer
22 \brief Set the \a request to serialize, and load the initial data into the \a buffer.
25 HttpSerializer::SetTo(HttpBuffer& buffer, const BHttpRequest& request)
27 buffer.Clear();
28 request.SerializeHeaderTo(buffer);
41 \brief Transfer the HTTP request to \a target while using \a buffer for intermediate storage.
46 HttpSerializer::Serialize(HttpBuffer& buffer, BDataIO* target)
56 _WriteToTarget(buffer, target);
57 if (buffer.RemainingBytes() > 0) {
75 auto bytesWritten = _WriteToTarget(buffer, target);
78 if (buffer.RemainingBytes() > 0) {
79 // did not manage to write all the bytes in the buffer; continue in the next
98 // Load more data into the buffer
102 buffer.ReadFrom(fBody, maxReadSize);
117 HttpSerializer::_WriteToTarget(HttpBuffer& buffer, BDataIO* target) const
120 buffer.WriteTo([target, &bytesWritten](const std::byte* buffer, size_t size) {
123 result = target->Write(buffer, size);