terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ WriteCallback() [1/2]

unsafe IntPtr Mono.Unity.UnityTlsContext.WriteCallback ( byte * data,
IntPtr bufferLen,
UnityTls::unitytls_errorstate * errorState )
inlineprivate

Definition at line 269 of file UnityTlsContext.cs.

270 {
271 if (this.writeBuffer != null)
272 {
273 int num = (int)bufferLen;
274 }
275 int num2 = (int)bufferLen;
276 byte[] array = this.writeBuffer;
277 int num3 = (int)bufferLen;
278 long num4 = 0L;
280 Marshal.Copy(intPtr, array, (int)num4, num3);
282 byte[] array2 = this.writeBuffer;
283 int num5 = (int)bufferLen;
284 long num6 = 0L;
285 bool flag = <Parent>k__BackingField.InternalWrite(array2, (int)num6, num5);
286 UnityTls.unitytls_interface_struct.unitytls_errorstate_raise_error_t unitytls_errorstate_raise_error = UnityTls.NativeInterface.unitytls_errorstate_raise_error;
287 IntPtr method_code = unitytls_errorstate_raise_error.method_code;
288 IntPtr invoke_impl = unitytls_errorstate_raise_error.invoke_impl;
289 IntPtr method = unitytls_errorstate_raise_error.method;
290 long num7 = 0L;
291 return (IntPtr)((int)num7);
292 }
class f__AnonymousType0<< Count > j__TPar
MobileAuthenticatedStream Parent
readonly MonoSslAuthenticationOptions< Options > k__BackingField
static void Copy(byte[] source, int startIndex, IntPtr destination, int length)
Definition Marshal.cs:55

References System.array, System.Runtime.InteropServices.Marshal.Copy(), j__TPar, Mono.Net.Security.MobileTlsContext.k__BackingField, System.L, Mono.Unity.UnityTls.NativeInterface, Mono.Net.Security.MobileTlsContext.Parent, and Mono.Unity.UnityTlsContext.writeBuffer.