Writes a pointer to an already-written value, allowing it to appear twice without overhead.
| 170 | |
| 171 | // Writes a pointer to an already-written value, allowing it to appear twice without overhead. |
| 172 | void Encoder::writeValueAgain(PreWrittenValue pos) { |
| 173 | throwIf(pos == PreWrittenValue::none, EncodeError, "Can't rewrite an inline Value"); |
| 174 | writePointer(ssize_t(pos) - _base.size); |
| 175 | } |
| 176 | |
| 177 | |
| 178 | alloc_slice Encoder::snip() { |
no outgoing calls
no test coverage detected