Class BufferDataValidationComponent
Used in conjunction with the RpcQueueTest to validate from 1 byte to (n) MaximumBufferSize
- Sending and Receiving a continually growing buffer up to (MaximumBufferSize)
- Default maximum buffer size is 1MB
Inheritance
BufferDataValidationComponent
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class BufferDataValidationComponent : NetworkBehaviour
Fields
BufferSizeStart
The rate at which the buffer size increases until it reaches MaximumBufferSize (the default starting buffer size is 1 bytes)
Declaration
public int BufferSizeStart
Field Value
Type | Description |
---|---|
Int32 |
EnableTesting
Allows the external RPCQueueTest to begin testing or stop it
Declaration
public bool EnableTesting
Field Value
Type | Description |
---|---|
Boolean |
MaximumBufferSize
The maximum size of the buffer to send
Declaration
public int MaximumBufferSize
Field Value
Type | Description |
---|---|
Int32 |
Properties
TestFailed
Is checked to determine if the test exited because it failed
Declaration
public bool TestFailed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
IsTestComplete()
Returns back whether the test has completed the total number of iterations
Declaration
public bool IsTestComplete()
Returns
Type | Description |
---|---|
Boolean |