p
FindElements
/html/body/div/div/div[1]/div[2]/div/div[2]/div[1]/div[1]/button/p
public void WriteFloats(uint address, Span<float> values) { if (BitConverter.IsLittleEndian) { var memory = new byte[values.Length * sizeof(float)]; BinaryPrimitives.ReverseEndianness( MemoryMarshal.Cast<float, int>(values), MemoryMarshal.Cast<byte, int>(memory)); SetMemory(address, memory, out _); return; } SetMemory(address, MemoryMarshal.Cast<float, byte>(values), out _); }
byte[]
Program:<<Main>$>g__WriteFloat2|0_2(uint,float) (FullOpts):G_M4409_IG01: ;; offset=0x0000 sub rsp, 24 vzeroupper xor eax, eax mov qword ptr [rsp+0x08], rax mov qword ptr [rsp+0x10], 0xCBAE90G_M4409_IG02: ;; offset=0x0017 lea rax, [rsp+0x08] vmovd ecx, xmm0 bswap ecx mov dword ptr [rax], ecx cmp qword ptr [rsp+0x10], 0xCBAE90 je SHORT G_M4409_IG03 call CORINFO_HELP_FAIL_FASTG_M4409_IG03: ;; offset=0x0034 nop G_M4409_IG04: ;; offset=0x0035 add rsp, 24 ret
Program:<<Main>$>g__WriteFloat|0_1(uint,float) (FullOpts):G_M5640_IG01: ;; offset=0x0000 push rbp sub rsp, 16 vzeroupper lea rbp, [rsp+0x10] vmovss dword ptr [rbp-0x04], xmm0G_M5640_IG02: ;; offset=0x0012 lea rdi, bword ptr [rbp-0x04] mov eax, 4 vmovss xmm0, dword ptr [rbp-0x04] vmovd ecx, xmm0 bswap ecx cmp eax, 4 jb SHORT G_M5640_IG05 mov dword ptr [rdi], ecxG_M5640_IG03: ;; offset=0x002D add rsp, 16 pop rbp ret G_M5640_IG04: ;; offset=0x0033 call CORINFO_HELP_OVERFLOWG_M5640_IG05: ;; offset=0x0038 mov edi, 40 call [System.ThrowHelper:ThrowArgumentOutOfRangeException(int)] int3