| 241 | } |
| 242 | |
| 243 | inline int32_t AppendInt64(int8_t* buf_ptr, uint32_t buf_size, int64_t val, |
| 244 | uint32_t field_offset) { |
| 245 | if (field_offset + 8 > buf_size) { |
| 246 | return -1; |
| 247 | } |
| 248 | *(reinterpret_cast<int64_t*>(buf_ptr + field_offset)) = val; |
| 249 | return 8; |
| 250 | } |
| 251 | |
| 252 | inline int32_t AppendDouble(int8_t* buf_ptr, uint32_t buf_size, double val, |
| 253 | uint32_t field_offset) { |
no outgoing calls
no test coverage detected