classref: Sync with current 4.0 branch (cfedb0a)

This commit is contained in:
Godot Organization
2023-07-24 10:19:37 +00:00
parent 0611b6da9e
commit c39e8f8635
257 changed files with 965 additions and 838 deletions

View File

@@ -12,14 +12,14 @@ StreamPeerBuffer
**Inherits:** :ref:`StreamPeer<class_StreamPeer>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Data buffer stream peer.
A stream peer used to handle binary data streams.
.. rst-class:: classref-introduction-group
Description
-----------
Data buffer stream peer that uses a byte array as the stream. This object can be used to handle binary data from network sessions. To handle binary data stored in files, :ref:`FileAccess<class_FileAccess>` can be used directly.
A data buffer stream peer that uses a byte array as the stream. This object can be used to handle binary data from network sessions. To handle binary data stored in files, :ref:`FileAccess<class_FileAccess>` can be used directly.
A **StreamPeerBuffer** object keeps an internal cursor which is the offset in bytes to the start of the buffer. Get and put operations are performed at the cursor position and will move the cursor accordingly.