@@ -161,13 +161,14 @@ pub struct Decoder<R: std::io::Read> {
161
161
impl < R : std:: io:: Read > Decoder < R > {
162
162
/// Instantiates a new decoder.
163
163
///
164
- /// This does not support multiplexed streams.
164
+ /// This does not support concatenated streams (i.e. streams of bytes where multiple RRD files
165
+ /// -- not recordings, RRD files! -- follow each other).
165
166
///
166
- /// If you're not familiar with multiplexed RRD streams, then this is probably the function
167
+ /// If you're not familiar with concatenated RRD streams, then this is probably the function
167
168
/// that you want to be using.
168
169
///
169
170
/// See also:
170
- /// * [`Decoder::new_multiplexed `]
171
+ /// * [`Decoder::new_concatenated `]
171
172
pub fn new ( version_policy : VersionPolicy , mut read : R ) -> Result < Self , DecodeError > {
172
173
re_tracing:: profile_function!( ) ;
173
174
@@ -186,22 +187,23 @@ impl<R: std::io::Read> Decoder<R> {
186
187
} )
187
188
}
188
189
189
- /// Instantiates a new multiplexed decoder.
190
+ /// Instantiates a new concatenated decoder.
190
191
///
191
- /// This will gracefully handle multiplexed RRD streams, at the cost of extra performance
192
- /// overhead, by looking ahead for potential `FileHeader`s in the stream.
192
+ /// This will gracefully handle concatenated RRD streams (i.e. streams of bytes where multiple
193
+ /// RRD files -- not recordings, RRD files! -- follow each other), at the cost of extra
194
+ /// performance overhead, by looking ahead for potential `FileHeader`s in the stream.
193
195
///
194
- /// The [`CrateVersion`] of the final, demultiplexed stream will correspond to the most recent
196
+ /// The [`CrateVersion`] of the final, deconcatenated stream will correspond to the most recent
195
197
/// version among all the versions found in the stream.
196
198
///
197
199
/// This is particularly useful when working with stdio streams.
198
200
///
199
- /// If you're not familiar with multiplexed RRD streams, then you probably want to use
201
+ /// If you're not familiar with concatenated RRD streams, then you probably want to use
200
202
/// [`Decoder::new`] instead.
201
203
///
202
204
/// See also:
203
205
/// * [`Decoder::new`]
204
- pub fn new_multiplexed (
206
+ pub fn new_concatenated (
205
207
version_policy : VersionPolicy ,
206
208
mut read : std:: io:: BufReader < R > ,
207
209
) -> Result < Self , DecodeError > {
@@ -232,7 +234,7 @@ impl<R: std::io::Read> Decoder<R> {
232
234
///
233
235
/// Returns true if a valid header was found.
234
236
///
235
- /// No-op if the decoder wasn't initialized with [`Decoder::new_multiplexed `].
237
+ /// No-op if the decoder wasn't initialized with [`Decoder::new_concatenated `].
236
238
fn peek_file_header ( & mut self ) -> bool {
237
239
match & mut self . read {
238
240
Reader :: Raw ( _) => false ,
0 commit comments