mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkWriter.WriteBytes: rename parameter to avoid name collision
This commit is contained in:
parent
618b7a6e16
commit
2037b317c1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user