mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
comment
This commit is contained in:
parent
e565fce30b
commit
198fed4bdf
@ -858,6 +858,7 @@ bool OnSerializeSafely(NetworkBehaviour comp, NetworkWriter writer, bool initial
|
|||||||
// (jumping back later is WAY faster than allocating a temporary
|
// (jumping back later is WAY faster than allocating a temporary
|
||||||
// writer for the payload, then writing payload.size, payload)
|
// writer for the payload, then writing payload.size, payload)
|
||||||
int headerPosition = writer.Position;
|
int headerPosition = writer.Position;
|
||||||
|
// no varint because we don't know the final size yet
|
||||||
writer.WriteInt(0);
|
writer.WriteInt(0);
|
||||||
int contentPosition = writer.Position;
|
int contentPosition = writer.Position;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user