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
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
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 |
---|---|
int |
EnableTesting
Allows the external RPCQueueTest to begin testing or stop it
Declaration
public bool EnableTesting
Field Value
Type | Description |
---|---|
bool |
MaximumBufferSize
The maximum size of the buffer to send
Declaration
public int MaximumBufferSize
Field Value
Type | Description |
---|---|
int |
Properties
TestFailed
Is checked to determine if the test exited because it failed
Declaration
public bool TestFailed { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
IsTestComplete()
Returns back whether the test has completed the total number of iterations
Declaration
public bool IsTestComplete()
Returns
Type | Description |
---|---|
bool |