Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9f827c99
Commit
9f827c99
authored
Sep 21, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/async: use class HugeArray instead of HugeAllocation
parent
7b2b9654
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AsyncInputStream.cxx
src/input/AsyncInputStream.cxx
+1
-1
AsyncInputStream.hxx
src/input/AsyncInputStream.hxx
+1
-1
No files found.
src/input/AsyncInputStream.cxx
View file @
9f827c99
...
@@ -37,7 +37,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
...
@@ -37,7 +37,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
deferred_resume
(
event_loop
,
BIND_THIS_METHOD
(
DeferredResume
)),
deferred_resume
(
event_loop
,
BIND_THIS_METHOD
(
DeferredResume
)),
deferred_seek
(
event_loop
,
BIND_THIS_METHOD
(
DeferredSeek
)),
deferred_seek
(
event_loop
,
BIND_THIS_METHOD
(
DeferredSeek
)),
allocation
(
_buffer_size
),
allocation
(
_buffer_size
),
buffer
(
(
uint8_t
*
)
allocation
.
get
(),
_buffer_size
),
buffer
(
&
allocation
.
front
(),
allocation
.
size
()
),
resume_at
(
_resume_at
)
resume_at
(
_resume_at
)
{
{
allocation
.
ForkCow
(
false
);
allocation
.
ForkCow
(
false
);
...
...
src/input/AsyncInputStream.hxx
View file @
9f827c99
...
@@ -41,7 +41,7 @@ class AsyncInputStream : public InputStream {
...
@@ -41,7 +41,7 @@ class AsyncInputStream : public InputStream {
DeferredCall
deferred_resume
;
DeferredCall
deferred_resume
;
DeferredCall
deferred_seek
;
DeferredCall
deferred_seek
;
HugeA
llocation
allocation
;
HugeA
rray
<
uint8_t
>
allocation
;
CircularBuffer
<
uint8_t
>
buffer
;
CircularBuffer
<
uint8_t
>
buffer
;
const
size_t
resume_at
;
const
size_t
resume_at
;
...
...
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