mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
81110bb8ec
* Support empty strings and vectors in standard codec Fixes #41993 Currently an empty string or vector will call through to WriteBytes which asserts that the number of bytes it is being asked to write is strictly positive. Instead we should not call WriteBytes if the length is zero. Similarly, when we read, we don't need to call out if the length is zero. * fix typo in test name * remove unnecessary length check in ReadValue for List * we also don't need this check before calling read as memcpy can handle size 0