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
e5a2efaa
Commit
e5a2efaa
authored
Dec 15, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/WritableBuffer: fix indent
parent
c44cb324
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
WritableBuffer.hxx
src/util/WritableBuffer.hxx
+31
-31
No files found.
src/util/WritableBuffer.hxx
View file @
e5a2efaa
...
...
@@ -41,47 +41,47 @@
*/
template
<
typename
T
>
struct
WritableBuffer
{
typedef
size_t
size_type
;
typedef
T
*
pointer_type
;
typedef
const
T
*
const_pointer_type
;
typedef
pointer_type
iterator
;
typedef
const_pointer_type
const_iterator
;
typedef
size_t
size_type
;
typedef
T
*
pointer_type
;
typedef
const
T
*
const_pointer_type
;
typedef
pointer_type
iterator
;
typedef
const_pointer_type
const_iterator
;
pointer_type
data
;
size_type
size
;
pointer_type
data
;
size_type
size
;
WritableBuffer
()
=
default
;
WritableBuffer
()
=
default
;
constexpr
WritableBuffer
(
pointer_type
_data
,
size_type
_size
)
:
data
(
_data
),
size
(
_size
)
{}
constexpr
WritableBuffer
(
pointer_type
_data
,
size_type
_size
)
:
data
(
_data
),
size
(
_size
)
{}
constexpr
static
WritableBuffer
Null
()
{
return
{
nullptr
,
0
};
}
constexpr
static
WritableBuffer
Null
()
{
return
{
nullptr
,
0
};
}
constexpr
bool
IsNull
()
const
{
return
data
==
nullptr
;
}
constexpr
bool
IsNull
()
const
{
return
data
==
nullptr
;
}
constexpr
bool
IsEmpty
()
const
{
return
size
==
0
;
}
constexpr
bool
IsEmpty
()
const
{
return
size
==
0
;
}
constexpr
iterator
begin
()
const
{
return
data
;
}
constexpr
iterator
begin
()
const
{
return
data
;
}
constexpr
iterator
end
()
const
{
return
data
+
size
;
}
constexpr
iterator
end
()
const
{
return
data
+
size
;
}
constexpr
const_iterator
cbegin
()
const
{
return
data
;
}
constexpr
const_iterator
cbegin
()
const
{
return
data
;
}
constexpr
const_iterator
cend
()
const
{
return
data
+
size
;
}
constexpr
const_iterator
cend
()
const
{
return
data
+
size
;
}
};
#endif
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