marshal.c cleanup (#11968)
commitfd1458579fb9f5052abb62c6c8936b4b4adc165d
authorJay Krell <jay.krell@cornell.edu>
Sat, 8 Dec 2018 10:05:19 +0000 (8 02:05 -0800)
committerGitHub <noreply@github.com>
Sat, 8 Dec 2018 10:05:19 +0000 (8 02:05 -0800)
tree28f2b961021b3f1e95c8470616b5fe70a406f478
parent449e36638fc0b7188b2e9fbd9734a5b263ba9d22
marshal.c cleanup (#11968)

 - Reduce length computations of string builders.
 - Handle zero sized StringBuilder correctly (initialize the first
   not just the second character).
 - Check for overflow correctly in StringBuilder -- include offset.
 - Fix prototype of mono_string_to_byvalstr (gpointer vs. char*)
 - Fix prototype of mono_string_to_byvalwstr (gpionter vs. gunichar2*).
 - Single point of exit in mono_string_builder_to_utf8.
mono/metadata/marshal.c
mono/metadata/marshal.h