using System;
using System.Runtime.InteropServices;
public class Program
{
public static void Main()
byte[] buffer = new byte[1024];
int offset = 0;
int requestTimestamp = 19023456;
MemoryMarshal.Write(buffer.AsSpan(offset, sizeof(Int32)), ref requestTimestamp);
}