andreiaron
Programmer
Hi, i am trying to use a network stream in c#. I need to both read and write
strings, some integral types (short, byte).
I tried using a StreamReader and a StreamWriter on this stream. But the
StrteamReader only gives char reading options (unicode utf8 2 bytes chars) .
If i try to read at the same time from the stream itself, i can't find
anything there (probably because the inner buffer of the streamReader
empties the buffer of the strteam regularly)
so i decided that the only option is to operate at a byte level.
So, i need to convert shorts, chars, to bytes and viceversa.
Thanks, i hope someone can help me.
Andrei
strings, some integral types (short, byte).
I tried using a StreamReader and a StreamWriter on this stream. But the
StrteamReader only gives char reading options (unicode utf8 2 bytes chars) .
If i try to read at the same time from the stream itself, i can't find
anything there (probably because the inner buffer of the streamReader
empties the buffer of the strteam regularly)
so i decided that the only option is to operate at a byte level.
So, i need to convert shorts, chars, to bytes and viceversa.
Thanks, i hope someone can help me.
Andrei