TDLib
Loading...
Searching...
No Matches
encryptGroupCallData Class Referencefinal

Inherits Function.

Description

Encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

Public Types

using ReturnType = object_ptr<data>
 Typedef for the type returned by the function.

Public Member Functions

 encryptGroupCallData ()
 encryptGroupCallData (int32 group_call_id_, object_ptr< GroupCallDataChannel > &&data_channel_, bytes const &data_, int32 unencrypted_prefix_size_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bytes data_
 Data to encrypt.
object_ptr< GroupCallDataChannel > data_channel_
 Data channel for which data is encrypted.
int32 group_call_id_
 Group call identifier. The call must not be a video chat.
int32 unencrypted_prefix_size_
 Size of data prefix that must be kept unencrypted.

Static Public Attributes

static const std::int32_t ID = -377997690
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ encryptGroupCallData() [1/2]

encryptGroupCallData ( )

Default constructor for a function, which encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

◆ encryptGroupCallData() [2/2]

encryptGroupCallData ( int32 group_call_id_,
object_ptr< GroupCallDataChannel > && data_channel_,
bytes const & data_,
int32 unencrypted_prefix_size_ )

Creates a function, which encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

Parameters
[in]group_call_id_Group call identifier. The call must not be a video chat.
[in]data_channel_Data channel for which data is encrypted.
[in]data_Data to encrypt.
[in]unencrypted_prefix_size_Size of data prefix that must be kept unencrypted.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: