<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] info needed on input
buffer</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1"> I came
to know that we can use functions like
test4Bytes(),get4Bytes(),getByte(), SkipBytes()
</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">defined in
StreamParser.hh<font color="#000080">.</font></font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1"> </font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1"> Are
there any other methods to read from file or
buffer?</font></blockquote>
<div><br></div>
<div>"StreamParser" is used to parse data from a byte stream
(which will usually be a "ByteStreamFileSource"). If,
instead, you simply want to read data without parsing it, or if you
want to read data in fixed-size chunks only, then you can do so by
reading directly from a "ByteStreamFileSource".</div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial"
size="-1"> </font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1"> How
can we find<font color="#000080"> out</font> that EOF is reached while
reading from input buffer?</font></blockquote>
<div><br></div>
<div>The "onInputCloseFunc" function (passed as a parameter
to the "StreamParser" constructor) will get called.
(Usually, this will be the "onCloseFunc" function that's
passed to "FramedSource::getNextFrame()".) Look at the
code for the demo applications to see several examples of this.</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>