Adds the necessary options for padding
Namespace: NetworkCommsDotNet.DPSBaseAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- options
- Type: System.Collections.Generic Dictionary String, String
The Dictionary to add the options to
- paddedSize
- Type: System Int32
The size that the data section of the packet should be padded to. If throwExceptionOnNotEnoughPadding is true this must be at least the original data packet size plus four bytes
- paddingType (Optional)
- Type: NetworkCommsDotNet.DPSBase DataPadder DataPaddingType
Determines whether the data is padded with zeros or random data
- throwExceptionOnNotEnoughPadding (Optional)
- Type: System Boolean
If true an ArgumentException is thrown if paddingSize is smaller than the original data packet size plus four bytes
See Also