|
Is there any reason the stl still uses the streams that it does? It seems that .net streams are much easier to use and implement. I can understand them keeping them due to compatibility reasons but why haven't they added a new stream implementation more...
Answer Snippets (Read the full thread at stackoverflow):
You can that the thing it happens to call a stream....
I don't know about .Net, but since you say the question would be the same for Java streams, the most obvious pro- for C++ streams is that they have all the formatting built into std::ios.
|
|
Hello, I'm currently writing a little toy assembler in c# (going through the elements of computing systems book . Really good book by the way.)
The assembler takes an input file path and removes junk (comments etc) lines.
The file is then passed to a ...
Started by bplus on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The caller should either create a stream for the assembler (and subsequent modules) to use, or the assembler should....
If something else is using the stream after the assembler is done with it, the assembler shouldn't "own" the stream.
|
|
Why does the UDP protocol not support streams like TCP protocol does?
Started by Neal on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
That's why some streaming....
That's not a suitable basis for a reliable stream by then.
A "stream" is a high-level concept, and thus on the way, as well - and no-one will know.
Without a high-level protocol controlling what goes on.
|
Ask your Facebook Friends
|
In my previous question, someone has commented that write a .NET Stream to two another Streams simultaneously is possible. I only could find one way but using a temporary variable (buffer) that would store the contents (fully or partialy at once) of the...
Started by Jader Dias on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Stream { private readonly Stream[] streams; private AutoResetEvent[] waits; private readonly IAsyncResult[] results; public MultiWriteStream(params Stream[] streams) { this.streams = (StreamUsing a buffer you can ....
|
|
I was having a look at this tutorial at Sun on command line I/O. It stated that:
You might expect the Standard Streams to be character streams, but, for historical reasons, they are byte streams. System.out and System.err are defined as PrintStream objects...
Started by hhafez on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In Windows, those streams perform CRLF translation, but in POSIX systems with the annoyingly disparate treatment of line ends, meant that byte streams were the only type that had the same semantics....
Respectively) are byte streams.
|
|
I hardly find a good resource about the subject. Almost all books and websites I know give a simple introduction about streams in C++ and that's it!
Would you recommend a good book or tutorial to learn more about standard streams in C++ ?
Started by AraK on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In that case, you could try The C++ Standard a decent chapter on ....
It doesn't handle much of stream of streams, which can be a whole lot more than what you want.
Is at least thorough in using streams - including overloading etc.
|
|
Today I have seen this weird magic NTFS system supports: each file can have multiple data streams. Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data stream for that file. This is strictly NTFS...
Started by MasterPeter on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Use:
more < 1013.pdf:Zone.Identifier
Update: removed some factual errors....
The type command doesn't understand streams.
They will support NTFS show in your question.
As long as Windows versions support NTFS, they will support file streams.
|
|
I wanted to know how streams work internally in c#. Does StreamReader and StreamWriter use recv() and send() functions of Winsock internally. I also wanted to know the difference between streams and channels.
Started by Neal on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
NetworkStream is a ....
Stream doesn't know anything about network I/O as it's abstracted further out.
I'd bet they don't use winsock internally, because streams aren't only used for network IO is not a Stream, nor is a StreamWriter.
|
|
Streams are kind of mysterious to me. I don't know when to use which stream and how to use them. Can someone explain to me how streams are used? If I understand correctly there are three stream types: stream, read stream and write stream. Is this correct...
Started by Martijn on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The StreamWell you can both read and write to a stream in most cases, a memorystream is some thing you can declare so that you can work with data in....
I wouldn't call those different kind of streams.
If you only opened it for Read access.
|
|
The MPEG-4 file format allows multiple streams to be present in a file. This is useful for videos containing audio in multiple languages. In the case of such a video, the audio streams are synchronized to the video.
Is it possible to create a MPEG-4 file...
Started by MyKey_ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Concatenating all streams....
This won't be ideal, for some the tracks as synchronized audio streams, but set the timing information in such a way that the first.
Concatenate all the audio streams into one audio track in the MP4 file.
|