Opc.Ua.Core
CalculateChunkCount Method



Opc.Ua.Bindings Namespace > UaSCUaBinaryChannel Class : CalculateChunkCount Method
The message size to be used.
The buffer available for a message.
Calculate the chunk count which can be used for messages based on buffer size.
Syntax
'Declaration
 
Protected Shared Function CalculateChunkCount( _
   ByVal messageSize As Integer, _
   ByVal bufferSize As Integer _
) As Integer
'Usage
 
Dim messageSize As Integer
Dim bufferSize As Integer
Dim value As Integer
 
value = UaSCUaBinaryChannel.CalculateChunkCount(messageSize, bufferSize)
protected static int CalculateChunkCount( 
   int messageSize,
   int bufferSize
)
protected:
static int CalculateChunkCount( 
   int messageSize,
   int bufferSize
) 

Parameters

messageSize
The message size to be used.
bufferSize
The buffer available for a message.

Return Value

The chunk count.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UaSCUaBinaryChannel Class
UaSCUaBinaryChannel Members