Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
c0fd4404
Commit
c0fd4404
authored
Aug 10, 2018
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add virtual destructors to IReader and IWriter
parent
d9e688ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
reader_writer.h
src/butil/reader_writer.h
+4
-0
No files found.
src/butil/reader_writer.h
View file @
c0fd4404
...
@@ -26,6 +26,8 @@ namespace butil {
...
@@ -26,6 +26,8 @@ namespace butil {
// The simplest implementation is to embed a file descriptor and read from it.
// The simplest implementation is to embed a file descriptor and read from it.
class
IReader
{
class
IReader
{
public
:
public
:
virtual
~
IReader
()
{}
// Semantics of parameters and return value are same as readv(2) except that
// Semantics of parameters and return value are same as readv(2) except that
// there's no `fd'.
// there's no `fd'.
virtual
ssize_t
ReadV
(
const
iovec
*
iov
,
int
iovcnt
)
=
0
;
virtual
ssize_t
ReadV
(
const
iovec
*
iov
,
int
iovcnt
)
=
0
;
...
@@ -35,6 +37,8 @@ public:
...
@@ -35,6 +37,8 @@ public:
// The simplest implementation is to embed a file descriptor and writev into it.
// The simplest implementation is to embed a file descriptor and writev into it.
class
IWriter
{
class
IWriter
{
public
:
public
:
virtual
~
IWriter
()
{}
// Semantics of parameters and return value are same as writev(2) except that
// Semantics of parameters and return value are same as writev(2) except that
// there's no `fd'.
// there's no `fd'.
// WriteV is required to submit data gathered by multiple appends in one
// WriteV is required to submit data gathered by multiple appends in one
...
...
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