RawMemoryWrite
RawMemoryWrite[ptr, val] writes a binary representation of val to the raw memory at the pointer ptr.
RawMemoryWrite[ptr, val, offset] writes to an offset pointer.
Examples
ptr = RawMemoryAllocate["Integer32", 10];
RawMemoryWrite[ptr, 42]Please visit the official Wolfram Language Reference for more details.