How to convert Unity.Collections.NativeArray byte[] array toString? #597
Unanswered
IceBear1226
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been practicing with this library for dynamic analysis. Thanks to vfsfitvnm , there was a lot of progress . But I have faced this problem.
So, an instance I've found with iIl2CPP.method return value :
Unity.Collections.NativeArray`1[[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] .
I know it's a metadata because field.value couldn't interpret it.
I'm sure this is a bytearray to deliver certain Strings because the class of this instance is UploadHandler from Unity Engine.
the Codes I tried : I got a help from GPT, but maybe this hexadump thing is not a valid thing for UTF-8 decoding. Nontheless, I got a positive result. i could read Strings I wanted to see. But it throws error at some point.
I tried to find the class for NativeArray in UnityEngine.Module
But it was a struct, not a class. So I couldn't use IL2CPP.domain.assembly().image.class to get the methods of it.
I hope I could use ToArray or CopyTo methods of NativeArray , sadly I can't
Using this way throws TypeError : not a function error.
I read #117 discussion, but It looks like code below doesn't work anymore.
After days I practiced this tool , I thought I have a grasp of the basic use of the tool, but I'm feeling hopeless again. Does anyone know how to turnNativa byte array into String[] ini il2cpp-bridge?
Beta Was this translation helpful? Give feedback.
All reactions