| | |
question about reading from/writing to a stream
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 56
Reputation:
Solved Threads: 0
I'm writing a class that does a lot of reading and writing from a stream It needs to write bytes, sbytes, and signed or unsigned int32 and 16. I have been having trouble finding ways to read/write evrything I need to.
UInt16 and UInt32 were easy
when i looked for a way to read a byte I found the method readbyte, but it returns an int not a byte
(I could cast it, but would that work?)
Then I got to Int16,Int 32 and sbyte and couldn't find any way to read signed bytes.
Could Somebody Help me with this.
UInt16 and UInt32 were easy
when i looked for a way to read a byte I found the method readbyte, but it returns an int not a byte
(I could cast it, but would that work?)Then I got to Int16,Int 32 and sbyte and couldn't find any way to read signed bytes.
Could Somebody Help me with this.
![]() |
Similar Threads
- How do I flush the input stream? (C++)
- Problem declaring class object array (C++)
- Problem with strtok() for data structure creation (C++)
- java and BasicSTAMP USB (Java)
- Reading or writing a double into a bin file (C++)
- Doubts in i/o and others in 'C' (C++)
- Audio: Reading Internet "Playlist" and outputting audio (Java)
- Multi-threading with C++.NET (C++)
Other Threads in the C# Forum
- Previous Thread: Need Email validation source code (C#)
- Next Thread: Multi Threading
| Thread Tools | Search this Thread |
.net access activedirectory algorithm array barchart bitmap box broadcast buttons c# check checkbox client combobox connect control conversion cryptographyc#winformsencryption csharp custom database datagrid datagridview dataset datetime degrees development disabled displayingopenforms draganddrop drawing encryption enum event excel file foreach form format forms ftp function gdi+ httpwebrequest image index index-error input install java label list listbox listview mandelbrot math mathematics mouseclick mysql operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox security server setup sleep socket sql statistics stream string table text textbox thread time timer totaldays update user usercontrol validation visual visualstudio webbrowser windows winforms wpf xml





