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
6f04b223
Commit
6f04b223
authored
Feb 17, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd/Page: use std::byte
parent
8d90b831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Page.hxx
src/output/plugins/httpd/Page.hxx
+3
-4
No files found.
src/output/plugins/httpd/Page.hxx
View file @
6f04b223
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "util/AllocatedArray.hxx"
#include "util/AllocatedArray.hxx"
#include <cstddef>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <memory>
/**
/**
...
@@ -32,11 +31,11 @@
...
@@ -32,11 +31,11 @@
* several instances hold references to one buffer.
* several instances hold references to one buffer.
*/
*/
class
Page
{
class
Page
{
AllocatedArray
<
uint8_t
>
buffer
;
AllocatedArray
<
std
::
byte
>
buffer
;
public
:
public
:
explicit
Page
(
size_t
_size
)
noexcept
:
buffer
(
_size
)
{}
explicit
Page
(
size_t
_size
)
noexcept
:
buffer
(
_size
)
{}
explicit
Page
(
AllocatedArray
<
uint8_t
>
&&
_buffer
)
noexcept
explicit
Page
(
AllocatedArray
<
std
::
byte
>
&&
_buffer
)
noexcept
:
buffer
(
std
::
move
(
_buffer
))
{}
:
buffer
(
std
::
move
(
_buffer
))
{}
Page
(
const
void
*
data
,
size_t
size
)
noexcept
;
Page
(
const
void
*
data
,
size_t
size
)
noexcept
;
...
@@ -45,7 +44,7 @@ public:
...
@@ -45,7 +44,7 @@ public:
return
buffer
.
size
();
return
buffer
.
size
();
}
}
const
uint8_t
*
GetData
()
const
noexcept
{
const
std
::
byte
*
GetData
()
const
noexcept
{
return
&
buffer
.
front
();
return
&
buffer
.
front
();
}
}
};
};
...
...
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