Repository navigation
Commit e34dba5
authored
fix: FastBufferWriter growth from a size of 0 (#4223)
* fix: FastBufferWriter growth from a size of 0
A growable FastBufferWriter created with a size of 0 never returned from its
first write that needed to grow: Grow doubled a capacity of 0, so its loop never
reached the required size. Growth now starts from at least 1 byte.
UUM-158589
* chore: CHANGELOG PR number1 parent 7951347 commit e34dba5
3 files changed
Lines changed: 13 additions & 1 deletion
File tree
- com.unity.netcode.gameobjects
- Runtime/Serialization
- Tests/Editor/Serialization
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1527 | 1538 | | |
1528 | 1539 | | |
1529 | 1540 | | |
| |||
0 commit comments