sel-net ~master (2022-05-12T13:34:10.7962628)
Dub
Repo
LengthPrefixedStream
sel
net
modifiers
Undocumented in source.
class
LengthPrefixedStream :
ModifierStream
(
T
Endian
endianness
=
Endian
.
bigEndian
)
if
(
isNumeric
!
T
||
(
is
(
typeof
(
T
.
encode
)) &&
isIntegral
!(
Parameters
!(
T
.
encode
)[0])
)
) {
static if
(
isNumeric!T
)
enum
requiredSize
;
static if
(!(
isNumeric!T
))
enum
requiredSize
;
size_t
maxLength
;
this
(Stream stream, size_t maxLength);
ptrdiff_t
send
(ubyte[] payload);
ubyte
[]
receive
();
}
Constructors
this
this
(Stream stream, size_t maxLength)
Undocumented in source.
Members
Functions
receive
ubyte
[]
receive
()
send
ptrdiff_t
send
(ubyte[] payload)
Sends a buffer prefixing it with its length.
Manifest constants
requiredSize
enum
requiredSize
;
Undocumented in source.
requiredSize
enum
requiredSize
;
Undocumented in source.
Variables
maxLength
size_t
maxLength
;
Undocumented in source.
Inherited Members
From ModifierStream
stream
Stream
stream
;
Undocumented in source.
send
ptrdiff_t
send
(ubyte[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
receive
ubyte
[]
receive
()
Undocumented in source. Be warned that the author may not have intended to support it.
lastRecv
ptrdiff_t
lastRecv
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
sel
net
modifiers
classes
CompressedStream
LengthPrefixedStream
ModifierStream
PaddedStream