Click or drag to resize
CustomPacketEncryptHandler Delegate
Encrypts outgoing data

Namespace:  TeamSpeak.Sdk.Client
Assembly:  TeamSpeak.Sdk (in TeamSpeak.Sdk.dll) Version: 0.1.6124.20226 (0.1.0.0)
Syntax
public delegate void CustomPacketEncryptHandler(
	ref IntPtr dataToSend,
	ref uint sizeOfData
)

Parameters

dataToSend
Type: SystemIntPtr
An array with the outgoing data to be encrypted. Apply your custom encryption to the data array. If the encrypted data is smaller than sizeOfData, write your encrypted data into the existing memory of dataToSend. If your encrypted data is larger, you need to allocate memory and change dataToSend. You need to take care of freeing your own allocated memory yourself. The memory allocated by the SDK, to which dataToSend is originally pointing to, must not be freed.
sizeOfData
Type: SystemUInt32
The size of the data array.
See Also