| | |
question about reading from/writing to a stream
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
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
Views: 1240 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access algorithm array barchart bitmap box button buttons c# chat check checkbox class client code color combobox control conversion csharp custom database datagridview dataset datetime degrees draganddrop drawing encryption enum excel file files form format forms ftp function gcd gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





