Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
7298c7fa
Commit
7298c7fa
authored
Oct 25, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More RPC protocol WIP.
parent
41feb767
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
capability.h
c++/src/capnp/capability.h
+3
-2
layout.h
c++/src/capnp/layout.h
+2
-0
rpc.c++
c++/src/capnp/rpc.c++
+0
-0
array.h
c++/src/kj/array.h
+3
-0
No files found.
c++/src/capnp/capability.h
View file @
7298c7fa
...
...
@@ -91,11 +91,11 @@ class Response: public Results::Reader {
// is move-only -- once it goes out-of-scope, the underlying message will be freed.
public
:
inline
Response
(
typename
Results
::
Reader
reader
,
kj
::
Own
<
ResponseHook
>&&
hook
)
inline
Response
(
typename
Results
::
Reader
reader
,
kj
::
Own
<
const
ResponseHook
>&&
hook
)
:
Results
::
Reader
(
reader
),
hook
(
kj
::
mv
(
hook
))
{}
private
:
kj
::
Own
<
ResponseHook
>
hook
;
kj
::
Own
<
const
ResponseHook
>
hook
;
template
<
typename
,
typename
>
friend
class
Request
;
...
...
@@ -347,6 +347,7 @@ public:
};
kj
::
Own
<
const
ClientHook
>
newBrokenCap
(
const
char
*
reason
);
kj
::
Own
<
const
ClientHook
>
newBrokenCap
(
kj
::
Exception
&&
reason
);
// Helper function that creates a capability which simply throws exceptions when called.
// =======================================================================================
...
...
c++/src/capnp/layout.h
View file @
7298c7fa
...
...
@@ -494,6 +494,8 @@ public:
:
segment
(
nullptr
),
data
(
nullptr
),
pointers
(
nullptr
),
dataSize
(
0
),
pointerCount
(
0
),
bit0Offset
(
0
),
nestingLimit
(
0x7fffffff
)
{}
const
void
*
getLocation
()
const
{
return
data
;
}
inline
BitCount
getDataSectionSize
()
const
{
return
dataSize
;
}
inline
WirePointerCount
getPointerSectionSize
()
const
{
return
pointerCount
;
}
inline
Data
::
Reader
getDataSectionAsBlob
();
...
...
c++/src/capnp/rpc.c++
View file @
7298c7fa
This diff is collapsed.
Click to expand it.
c++/src/kj/array.h
View file @
7298c7fa
...
...
@@ -156,6 +156,9 @@ public:
inline
ArrayPtr
<
T
>
asPtr
()
{
return
ArrayPtr
<
T
>
(
ptr
,
size_
);
}
inline
ArrayPtr
<
const
T
>
asPtr
()
const
{
return
ArrayPtr
<
T
>
(
ptr
,
size_
);
}
inline
size_t
size
()
const
{
return
size_
;
}
inline
T
&
operator
[](
size_t
index
)
const
{
...
...
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