shark ~master (2019-01-11T20:47:28Z)
Dub
Repo
Stream
shark
util
Undocumented in source.
class
Stream (
size_t
idLength
Endian
endianness
size_t
length
bool
lengthIncludesItself
Endian
sequenceEndianness
=
Endian
.
littleEndian
S
=
Object
) {
protected
Socket
_socket
;
this
(Socket socket, size_t buffer);
Socket
socket
[@property getter];
static if
(
idLength
)
T
[
idLength
]
id
[@property getter];
static if
(
idLength
)
T
[
idLength
]
id
[@property setter];
static if
(
usesSequence
)
void
resetSequence
();
Buffer
receive
();
void
send
(Buffer buffer);
void
writeLength
(Buffer buffer);
}
Constructors
this
this
(Socket socket, size_t buffer)
Undocumented in source.
Members
Functions
receive
Buffer
receive
()
Undocumented in source. Be warned that the author may not have intended to support it.
resetSequence
void
resetSequence
()
Undocumented in source. Be warned that the author may not have intended to support it.
send
void
send
(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
writeLength
void
writeLength
(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
id
T
[
idLength
]
id
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
id
T
[
idLength
]
id
[@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket
socket
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_socket
Socket
_socket
;
Undocumented in source.
Meta
Source
See Implementation
shark
util
classes
Stream
functions
fromHexString
read0String
toSnakeCase
write0String