Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteBytes()

static unsafe void System.Reflection.BlobUtilities.WriteBytes ( this byte[] buffer,
int start,
byte value,
int byteCount )
inlinestatic

Definition at line 31 of file BlobUtilities.cs.

32 {
33 fixed (byte* ptr = &buffer[0])
34 {
35 byte* ptr2 = ptr + start;
36 for (int i = 0; i < byteCount; i++)
37 {
38 ptr2[i] = value;
39 }
40 }
41 }

References System.buffer, System.byteCount, System.start, and System.value.