| 349 | } |
| 350 | |
| 351 | static void WriteULEB128(TArray<uint8_t> &stream, uint32_t v) |
| 352 | { |
| 353 | while (true) |
| 354 | { |
| 355 | if (v < 128) |
| 356 | { |
| 357 | WriteUInt8(stream, v); |
| 358 | break; |
| 359 | } |
| 360 | else |
| 361 | { |
| 362 | WriteUInt8(stream, (v & 0x7f) | 0x80); |
| 363 | v >>= 7; |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | static void WriteSLEB128(TArray<uint8_t> &stream, int32_t v) |
| 369 | { |
no test coverage detected