| 77 | } |
| 78 | |
| 79 | void encode_header() |
| 80 | { |
| 81 | char header[header_length + 1] = ""; |
| 82 | std::snprintf(header, header_length + 1, |
| 83 | "%4d", static_cast<int>(body_length_)); |
| 84 | std::memcpy(data_, header, header_length); |
| 85 | } |
| 86 | |
| 87 | private: |
| 88 | char data_[header_length + max_body_length]; |
no outgoing calls
no test coverage detected