NetworkWriter.WriteBytes: rename parameter to avoid name collision

This commit is contained in:
vis2k 2022-09-25 13:56:30 +07:00
parent 618b7a6e16
commit 2037b317c1

View File

@ -187,10 +187,10 @@ internal void WriteBlittableNullable<T>(T? value)
// for byte arrays with consistent size, where the reader knows how many to read // for byte arrays with consistent size, where the reader knows how many to read
// (like a packet opcode that's always the same) // (like a packet opcode that's always the same)
public void WriteBytes(byte[] buffer, int offset, int count) public void WriteBytes(byte[] array, int offset, int count)
{ {
EnsureCapacity(Position + count); EnsureCapacity(Position + count);
Array.ConstrainedCopy(buffer, offset, this.buffer, Position, count); Array.ConstrainedCopy(array, offset, this.buffer, Position, count);
Position += count; Position += count;
} }