 | 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)
Syntaxpublic delegate void CustomPacketEncryptHandler(
ref IntPtr dataToSend,
ref uint sizeOfData
)
Public Delegate Sub CustomPacketEncryptHandler (
ByRef dataToSend As IntPtr,
ByRef sizeOfData As UInteger
)
public delegate void CustomPacketEncryptHandler(
IntPtr% dataToSend,
unsigned int% sizeOfData
)
type CustomPacketEncryptHandler =
delegate of
dataToSend : IntPtr byref *
sizeOfData : uint32 byref -> unit
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