|SDTUtilsCreateStream Method (Int32)|
If the subsequent calls to add structured data types exceeds the buffer size an error (InsufficientSpace) is returned to the application.
Note: When using message-indpendent streams, it's an error to have more than one open subcontainer at once. In other words, client applications must close the open subcontainer before creating a new one. If such attempt is made, client applications will get an error with SDKErrorSubcode equal to OutOfMemory. Note that this limitation is not present with streams created with CreateStream(IMessage, Int32).
Note: Applications should call Dispose as soon as they're done with the stream. Message-independent containers, when created, allocate memory resources.
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 22.214.171.124 (126.96.36.199)
public static IStreamContainer CreateStream( int bufferSize )
Public Shared Function CreateStream ( bufferSize As Integer ) As IStreamContainer
public: static IStreamContainer^ CreateStream( int bufferSize )
- Type: SystemInt32
max size (in bytes) of the backing memory buffer to allocate on the heap
Return ValueType: IStreamContainer
The created container.