.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/PacketPeer.xml. .. _class_PacketPeer: PacketPeer ========== **Inherits:** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`ENetPacketPeer`, :ref:`MultiplayerPeer`, :ref:`PacketPeerDTLS`, :ref:`PacketPeerExtension`, :ref:`PacketPeerStream`, :ref:`PacketPeerUDP`, :ref:`WebRTCDataChannel`, :ref:`WebSocketPeer` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------+---------------------------------------------------------------------------------+-------------+ | :ref:`int` | :ref:`encode_buffer_max_size` | ``8388608`` | +-----------------------+---------------------------------------------------------------------------------+-------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_available_packet_count` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`get_packet` **(** **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`get_packet_error` **(** **)** |const| | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_var` **(** :ref:`bool` allow_objects=false **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`put_packet` **(** :ref:`PackedByteArray` buffer **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`put_var` **(** :ref:`Variant` var, :ref:`bool` full_objects=false **)** | +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_PacketPeer_property_encode_buffer_max_size: .. rst-class:: classref-property :ref:`int` **encode_buffer_max_size** = ``8388608`` .. rst-class:: classref-property-setget - void **set_encode_buffer_max_size** **(** :ref:`int` value **)** - :ref:`int` **get_encode_buffer_max_size** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_PacketPeer_method_get_available_packet_count: .. rst-class:: classref-method :ref:`int` **get_available_packet_count** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PacketPeer_method_get_packet: .. rst-class:: classref-method :ref:`PackedByteArray` **get_packet** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PacketPeer_method_get_packet_error: .. rst-class:: classref-method :ref:`Error` **get_packet_error** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PacketPeer_method_get_var: .. rst-class:: classref-method :ref:`Variant` **get_var** **(** :ref:`bool` allow_objects=false **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PacketPeer_method_put_packet: .. rst-class:: classref-method :ref:`Error` **put_packet** **(** :ref:`PackedByteArray` buffer **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PacketPeer_method_put_var: .. rst-class:: classref-method :ref:`Error` **put_var** **(** :ref:`Variant` var, :ref:`bool` full_objects=false **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`