Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
5ebbfb5b
Commit
5ebbfb5b
authored
Feb 03, 2012
by
Frédéric Yhuel
Committed by
Rafaël Carré
Feb 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/input/stream.c: improve documentation somewhat
Signed-off-by:
Rafaël Carré
<
funman@videolan.org
>
parent
90b7695c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/input/stream.c
src/input/stream.c
+10
-5
No files found.
src/input/stream.c
View file @
5ebbfb5b
...
...
@@ -1863,9 +1863,11 @@ static int ASeek( stream_t *s, uint64_t i_pos )
/**
* Try to read "i_read" bytes into a buffer pointed by "p_read". If
* "p_read" is NULL then data are skipped instead of read.
The return
*
value is the real numbers
of bytes read/skip. If this value is less
* "p_read" is NULL then data are skipped instead of read.
*
\return The real number
of bytes read/skip. If this value is less
* than i_read that means that it's the end of the stream.
* \note stream_Read increments the stream position, and when p_read is NULL,
* this is its only task.
*/
int
stream_Read
(
stream_t
*
s
,
void
*
p_read
,
int
i_read
)
{
...
...
@@ -1874,12 +1876,15 @@ int stream_Read( stream_t *s, void *p_read, int i_read )
/**
* Store in pp_peek a pointer to the next "i_peek" bytes in the stream
* \return The real number
s of valid bytes, i
f it's less
* \return The real number
of valid bytes. I
f it's less
* or equal to 0, *pp_peek is invalid.
* \note pp_peek is a pointer to internal buffer and it will be invalid as
* soons as other stream_* functions are called.
* \note Due to input limitation, it could be less than i_peek without meaning
* the end of the stream (but only when you have i_peek >=
* \note Contrary to stream_Read, stream_Peek doesn't modify the stream
* position, and doesn't necessarily involve copying of data. It's mainly
* used by the modules to quickly probe the (head of the) stream.
* \note Due to input limitation, the return value could be less than i_peek
* without meaning the end of the stream (but only when you have i_peek >=
* p_input->i_bufsize)
*/
int
stream_Peek
(
stream_t
*
s
,
const
uint8_t
**
pp_peek
,
int
i_peek
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment