PacketPeerStream

Wrapper to use a PacketPeer over a StreamPeer.

PacketStreamPeer provides a wrapper for working using packets over a stream. This allows for using packet based code with StreamPeers. PacketPeerStream implements a custom protocol over the StreamPeer, so the user should not read or write to the wrapped StreamPeer directly.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getInputBufferMaxSize
long getInputBufferMaxSize()
getOutputBufferMaxSize
long getOutputBufferMaxSize()
getStreamPeer
Ref!StreamPeer getStreamPeer()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(PacketPeerStream other)
opEquals
bool opEquals(typeof(null) n)
setInputBufferMaxSize
void setInputBufferMaxSize(long max_size_bytes)
setOutputBufferMaxSize
void setOutputBufferMaxSize(long max_size_bytes)
setStreamPeer
void setStreamPeer(StreamPeer peer)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

inputBufferMaxSize
long inputBufferMaxSize [@property getter]
long inputBufferMaxSize [@property setter]
outputBufferMaxSize
long outputBufferMaxSize [@property getter]
long outputBufferMaxSize [@property setter]
streamPeer
StreamPeer streamPeer [@property getter]
StreamPeer streamPeer [@property setter]

The wrapped StreamPeer object.

Static functions

_new
PacketPeerStream _new()

Construct a new instance of PacketPeerStream. Note: use memnew!PacketPeerStream instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta