From dc70ab5e2dddba2a39f8030ba02d5d13b4324231 Mon Sep 17 00:00:00 2001 From: RedMser Date: Tue, 17 Jan 2023 18:42:26 +0100 Subject: Document internal usage of encode/decode_variant --- doc/classes/PacketPeer.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/classes/PacketPeer.xml') diff --git a/doc/classes/PacketPeer.xml b/doc/classes/PacketPeer.xml index ab2bc34672..5dd9c5c9f9 100644 --- a/doc/classes/PacketPeer.xml +++ b/doc/classes/PacketPeer.xml @@ -33,6 +33,7 @@ Gets a Variant. If [param allow_objects] is [code]true[/code], decoding objects is allowed. + Internally, this uses the same decoding mechanism as the [method @GlobalScope.bytes_to_var] method. [b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. @@ -49,6 +50,7 @@ Sends a [Variant] as a packet. If [param full_objects] is [code]true[/code], encoding objects is allowed (and can potentially include code). + Internally, this uses the same encoding mechanism as the [method @GlobalScope.var_to_bytes] method. -- cgit v1.2.3