Result!(size_t, RleError): values written (== count), or
INSUFFICIENT_CAPACITY with bytes == 0, values == 0 (the buffer is untouched — callers resume, they never repair).
Result!(size_t, RleError) expandRunUint32(uint value, size_t count,
return scope uint[] dst) @safe pure nothrow @nogcWrites count copies of value into dst (bounded expansion).
Expansion is checked against the destination before writing; failure commits nothing.
value | the value to repeat. |
count | repetition count (≥ 0). |
dst | caller-provided output buffer. |
Result!(size_t, RleError): values written (== count), or
INSUFFICIENT_CAPACITY with bytes == 0, values == 0 (the buffer is untouched — callers resume, they never repair).