[Mono-dev] [Patch] AssemblyName ctor (correction)
Paolo Molaro
lupus at ximian.com
Fri Aug 12 10:13:19 EDT 2005
On 08/09/05 Carlos Alberto Cortez wrote:
> +static void
> +ves_icall_System_Reflection_AssemblyName_InternalParseKeyToken (MonoReflectionAssemblyName *aname, MonoString *key_token)
> +{
> + char *p, *token;
> + int i, j;
> +
> + token = mono_string_to_utf8 (key_token);
> + aname->keyToken = mono_array_new (mono_domain_get (), mono_defaults.byte_class, 8);
> + p = mono_array_addr (aname->keyToken, char, 0);
> + for (i = 0, j = 0; i < 8; i++) {
> + *p = g_ascii_xdigit_value (token [j++]) << 4;
> + *p |= g_ascii_xdigit_value (token [j++]);
> + p++;
> + }
> +
> + g_free (token);
I see no need to implement either of the two methods as internal calls.
Use C# code.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list