From 9952aeec0b6f5469c9a18beee2bcb51d94f74c2b Mon Sep 17 00:00:00 2001 From: RedMser <5117197+RedMser@users.noreply.github.com> Date: Tue, 17 Jan 2023 18:57:18 +0100 Subject: [PATCH] Document binary variant decoding/encoding helper --- tutorials/io/binary_serialization_api.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tutorials/io/binary_serialization_api.rst b/tutorials/io/binary_serialization_api.rst index 09179f96e..4e9e0a026 100644 --- a/tutorials/io/binary_serialization_api.rst +++ b/tutorials/io/binary_serialization_api.rst @@ -7,10 +7,12 @@ Introduction ------------ Godot has a serialization API based on Variant. It's used for -converting data types to an array of bytes efficiently. This API is used -in the functions ``get_var`` and ``store_var`` of :ref:`class_FileAccess` -as well as the packet APIs for :ref:`class_PacketPeer`. This format -is *not* used for binary scenes and resources. +converting data types to an array of bytes efficiently. This API is exposed +via the global :ref:`bytes_to_var() ` +and :ref:`var_to_bytes() ` functions, +but it is also used in the ``get_var`` and ``store_var`` methods of +:ref:`class_FileAccess` as well as the packet APIs for :ref:`class_PacketPeer`. +This format is *not* used for binary scenes and resources. Full Objects vs Object instance IDs -----------------------------------