| 160 | } |
| 161 | |
| 162 | void IpcClient::handle_plot_buffer_begin() { |
| 163 | oid::BufferAssembler::BeginParams params; |
| 164 | oid::MessageDecoder decoder{transport_}; |
| 165 | decoder.read(params.variable_name) |
| 166 | .read(params.display_name) |
| 167 | .read(params.pixel_layout) |
| 168 | .read(params.transpose) |
| 169 | .read(params.width) |
| 170 | .read(params.height) |
| 171 | .read(params.channels) |
| 172 | .read(params.stride); |
| 173 | int type_int{}; |
| 174 | decoder.read(type_int); |
| 175 | params.type = type_int; |
| 176 | decoder.read(params.total_byte_size); |
| 177 | assembler_.begin(std::move(params)); |
| 178 | } |
| 179 | |
| 180 | void IpcClient::handle_plot_buffer_chunk() { |
| 181 | std::string name; |