diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-22 05:08:07 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-22 13:35:41 +0200 |
commit | b9707ce08fe65f3a1fa09f033351a32077dde906 (patch) | |
tree | b2f73a3a884b0099385f5ef2d1496b19fe4d6c21 /COPYRIGHT.txt | |
parent | 5a03d50921d4d9e33fc3cd4adb1ea663819e2072 (diff) |
StreamPeer get[_utf8]_string with negative length.
If the "bytes" parameter of get_string and get_utf8_string is negative,
the length will be read from the stream instead.
The bytes parameter has now a default (-1), allowing to use them
directly as reverses of put_string and put_utf8_string .
put_string was not implemented, so I implemented it to allow sending
ASCII strings (which are much smaller than UTF8 ones).
Diffstat (limited to 'COPYRIGHT.txt')
0 files changed, 0 insertions, 0 deletions