| 250 | } |
| 251 | |
| 252 | inline int32_t AppendDouble(int8_t* buf_ptr, uint32_t buf_size, double val, |
| 253 | uint32_t field_offset) { |
| 254 | if (field_offset + 8 > buf_size) { |
| 255 | return -1; |
| 256 | } |
| 257 | |
| 258 | *(reinterpret_cast<double*>(buf_ptr + field_offset)) = val; |
| 259 | return 8; |
| 260 | } |
| 261 | |
| 262 | int32_t AppendString(int8_t* buf_ptr, uint32_t buf_size, int8_t* val, |
| 263 | uint32_t size, uint32_t str_start_offset, |
no outgoing calls
no test coverage detected