Treat body capacity as logical capacity
This commit is contained in:
parent
c180ec7363
commit
886d18800c
1 changed files with 2 additions and 2 deletions
|
|
@ -73,8 +73,8 @@ namespace GameCult.Mesh
|
|||
throw new InvalidOperationException("CultMesh body layout version mismatch.");
|
||||
if (descriptor.ProducerEpoch != request.ProducerEpoch)
|
||||
throw new InvalidOperationException("CultMesh body producer epoch mismatch.");
|
||||
if (descriptor.ByteSize < 0 || descriptor.Capacity < 0 || descriptor.ByteSize > descriptor.Capacity)
|
||||
throw new InvalidOperationException("CultMesh body size exceeds its declared capacity.");
|
||||
if (descriptor.ByteSize < 0 || descriptor.Capacity < 0)
|
||||
throw new InvalidOperationException("CultMesh body size and logical capacity must be non-negative.");
|
||||
if (descriptor.Sequence < 0)
|
||||
throw new InvalidOperationException("CultMesh body sequence must be non-negative.");
|
||||
if (descriptor.LeaseExpiresAtUnixMs <= request.NowUtc.ToUnixTimeMilliseconds())
|
||||
|
|
|
|||
Loading…
Reference in a new issue