Document internal usage of encode/decode_variant
This commit is contained in:
parent
f0326297b3
commit
dc70ab5e2d
4 changed files with 8 additions and 0 deletions
|
|
@ -109,6 +109,7 @@
|
|||
<param index="0" name="allow_objects" type="bool" default="false" />
|
||||
<description>
|
||||
Gets a Variant from the stream. 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.
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -234,6 +235,7 @@
|
|||
<param index="1" name="full_objects" type="bool" default="false" />
|
||||
<description>
|
||||
Puts a Variant into the stream. 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.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue