Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
StreamPeerBuffer¶
Inherits: StreamPeer < RefCounted < Object
A stream peer used to handle binary data streams.
Description¶
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, 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.
Properties¶
|
Methods¶
void |
clear ( ) |
duplicate ( ) const |
|
get_position ( ) const |
|
get_size ( ) const |
|
void |
|
void |
Property Descriptions¶
PackedByteArray data_array = PackedByteArray()
void set_data_array ( PackedByteArray value )
PackedByteArray get_data_array ( )
The underlying data buffer. Setting this value resets the cursor.