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
12243735
Commit
12243735
authored
Aug 22, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename section sizes to be slightly more intuitive.
parent
9da143f8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
89 additions
and
88 deletions
+89
-88
capnpc-c++.c++
c++/src/capnp/compiler/capnpc-c++.c++
+2
-2
capnpc-capnp.c++
c++/src/capnp/compiler/capnpc-capnp.c++
+2
-2
node-translator.c++
c++/src/capnp/compiler/node-translator.c++
+4
-4
dynamic.c++
c++/src/capnp/dynamic.c++
+2
-2
schema-loader.c++
c++/src/capnp/schema-loader.c++
+31
-31
schema.capnp
c++/src/capnp/schema.capnp
+6
-3
schema.capnp.c++
c++/src/capnp/schema.capnp.c++
+22
-24
schema.capnp.h
c++/src/capnp/schema.capnp.h
+20
-20
No files found.
c++/src/capnp/compiler/capnpc-c++.c++
View file @
12243735
...
...
@@ -936,8 +936,8 @@ private:
kj
::
strTree
(
"CAPNP_DECLARE_STRUCT(
\n
"
" "
,
namespace_
,
"::"
,
fullName
,
", "
,
hexId
,
",
\n
"
" "
,
structNode
.
getData
SectionWordSize
(),
", "
,
structNode
.
getPointer
SectionSize
(),
", "
,
" "
,
structNode
.
getData
WordCount
(),
", "
,
structNode
.
getPointer
Count
(),
", "
,
FIELD_SIZE_NAMES
[
static_cast
<
uint
>
(
structNode
.
getPreferredListEncoding
())],
");
\n
"
,
KJ_MAP
(
nestedTexts
,
n
)
{
return
kj
::
mv
(
n
.
capnpPrivateDecls
);
}),
...
...
c++/src/capnp/compiler/capnpc-capnp.c++
View file @
12243735
...
...
@@ -408,8 +408,8 @@ private:
return
kj
::
strTree
(
indent
,
"struct "
,
name
,
" @0x"
,
kj
::
hex
(
proto
.
getId
()),
genAnnotations
(
schema
),
" { # "
,
structProto
.
getData
SectionWordSize
()
*
8
,
" bytes, "
,
structProto
.
getPointer
SectionSize
(),
" ptrs"
,
structProto
.
getData
WordCount
()
*
8
,
" bytes, "
,
structProto
.
getPointer
Count
(),
" ptrs"
,
structProto
.
getPreferredListEncoding
()
==
schema
::
ElementSize
::
INLINE_COMPOSITE
?
kj
::
strTree
()
:
kj
::
strTree
(
", packed as "
,
elementSizeName
(
structProto
.
getPreferredListEncoding
())),
...
...
c++/src/capnp/compiler/node-translator.c++
View file @
12243735
...
...
@@ -910,8 +910,8 @@ public:
}
// And fill in the sizes.
structBuilder
.
setData
SectionWordSize
(
layout
.
getTop
().
dataWordCount
);
structBuilder
.
setPointer
SectionSize
(
layout
.
getTop
().
pointerCount
);
structBuilder
.
setData
WordCount
(
layout
.
getTop
().
dataWordCount
);
structBuilder
.
setPointer
Count
(
layout
.
getTop
().
pointerCount
);
structBuilder
.
setPreferredListEncoding
(
schema
::
ElementSize
::
INLINE_COMPOSITE
);
if
(
layout
.
getTop
().
pointerCount
==
0
)
{
...
...
@@ -936,8 +936,8 @@ public:
for
(
auto
&
group
:
translator
.
groups
)
{
auto
groupBuilder
=
group
.
get
().
getStruct
();
groupBuilder
.
setData
SectionWordSize
(
structBuilder
.
getDataSectionWordSize
());
groupBuilder
.
setPointer
SectionSize
(
structBuilder
.
getPointerSectionSize
());
groupBuilder
.
setData
WordCount
(
structBuilder
.
getDataWordCount
());
groupBuilder
.
setPointer
Count
(
structBuilder
.
getPointerCount
());
groupBuilder
.
setPreferredListEncoding
(
structBuilder
.
getPreferredListEncoding
());
}
}
...
...
c++/src/capnp/dynamic.c++
View file @
12243735
...
...
@@ -96,8 +96,8 @@ _::FieldSize elementSizeFor(schema::Type::Which elementType) {
inline
_
::
StructSize
structSizeFromSchema
(
StructSchema
schema
)
{
auto
node
=
schema
.
getProto
().
getStruct
();
return
_
::
StructSize
(
node
.
getData
SectionWordSize
()
*
WORDS
,
node
.
getPointer
SectionSize
()
*
POINTERS
,
node
.
getData
WordCount
()
*
WORDS
,
node
.
getPointer
Count
()
*
POINTERS
,
static_cast
<
_
::
FieldSize
>
(
node
.
getPreferredListEncoding
()));
}
...
...
c++/src/capnp/schema-loader.c++
View file @
12243735
...
...
@@ -240,8 +240,8 @@ private:
pointerCount
=
1
;
break
;
case
schema
:
:
ElementSize
::
INLINE_COMPOSITE
:
dataSizeInBits
=
structNode
.
getData
SectionWordSize
()
*
64
;
pointerCount
=
structNode
.
getPointer
SectionSize
();
dataSizeInBits
=
structNode
.
getData
WordCount
()
*
64
;
pointerCount
=
structNode
.
getPointer
Count
();
break
;
default:
FAIL_VALIDATE_SCHEMA
(
"invalid preferredListEncoding"
);
...
...
@@ -250,8 +250,8 @@ private:
break
;
}
VALIDATE_SCHEMA
(
structNode
.
getData
SectionWordSize
()
==
(
dataSizeInBits
+
63
)
/
64
&&
structNode
.
getPointer
SectionSize
()
==
pointerCount
,
VALIDATE_SCHEMA
(
structNode
.
getData
WordCount
()
==
(
dataSizeInBits
+
63
)
/
64
&&
structNode
.
getPointer
Count
()
==
pointerCount
,
"struct size does not match preferredListEncoding"
);
auto
fields
=
structNode
.
getFields
();
...
...
@@ -342,8 +342,8 @@ private:
// Require that the group's scope has at least the same size as the group, so that anyone
// constructing an instance of the outer scope can safely read/write the group.
loader
.
requireStructSize
(
scopeId
,
structNode
.
getData
SectionWordSize
(),
structNode
.
getPointer
SectionSize
(),
loader
.
requireStructSize
(
scopeId
,
structNode
.
getData
WordCount
(),
structNode
.
getPointer
Count
(),
structNode
.
getPreferredListEncoding
());
// Require that the parent type is a struct.
...
...
@@ -612,14 +612,14 @@ private:
void
checkCompatibility
(
const
schema
::
Node
::
Struct
::
Reader
&
structNode
,
const
schema
::
Node
::
Struct
::
Reader
&
replacement
,
uint64_t
scopeId
,
uint64_t
replacementScopeId
)
{
if
(
replacement
.
getData
SectionWordSize
()
>
structNode
.
getDataSectionWordSize
())
{
if
(
replacement
.
getData
WordCount
()
>
structNode
.
getDataWordCount
())
{
replacementIsNewer
();
}
else
if
(
replacement
.
getData
SectionWordSize
()
<
structNode
.
getDataSectionWordSize
())
{
}
else
if
(
replacement
.
getData
WordCount
()
<
structNode
.
getDataWordCount
())
{
replacementIsOlder
();
}
if
(
replacement
.
getPointer
SectionSize
()
>
structNode
.
getPointerSectionSize
())
{
if
(
replacement
.
getPointer
Count
()
>
structNode
.
getPointerCount
())
{
replacementIsNewer
();
}
else
if
(
replacement
.
getPointer
SectionSize
()
<
structNode
.
getPointerSectionSize
())
{
}
else
if
(
replacement
.
getPointer
Count
()
<
structNode
.
getPointerCount
())
{
replacementIsOlder
();
}
...
...
@@ -875,45 +875,45 @@ private:
switch
(
type
.
which
())
{
case
schema
:
:
Type
::
VOID
:
structNode
.
setData
SectionWordSize
(
0
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
0
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
EMPTY
);
break
;
case
schema
:
:
Type
::
BOOL
:
structNode
.
setData
SectionWordSize
(
1
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
1
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
BIT
);
break
;
case
schema
:
:
Type
::
INT8
:
case
schema
:
:
Type
::
UINT8
:
structNode
.
setData
SectionWordSize
(
1
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
1
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
BYTE
);
break
;
case
schema
:
:
Type
::
INT16
:
case
schema
:
:
Type
::
UINT16
:
case
schema
:
:
Type
::
ENUM
:
structNode
.
setData
SectionWordSize
(
1
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
1
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
TWO_BYTES
);
break
;
case
schema
:
:
Type
::
INT32
:
case
schema
:
:
Type
::
UINT32
:
case
schema
:
:
Type
::
FLOAT32
:
structNode
.
setData
SectionWordSize
(
1
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
1
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
FOUR_BYTES
);
break
;
case
schema
:
:
Type
::
INT64
:
case
schema
:
:
Type
::
UINT64
:
case
schema
:
:
Type
::
FLOAT64
:
structNode
.
setData
SectionWordSize
(
1
);
structNode
.
setPointer
SectionSize
(
0
);
structNode
.
setData
WordCount
(
1
);
structNode
.
setPointer
Count
(
0
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
EIGHT_BYTES
);
break
;
...
...
@@ -923,8 +923,8 @@ private:
case
schema
:
:
Type
::
STRUCT
:
case
schema
:
:
Type
::
INTERFACE
:
case
schema
:
:
Type
::
OBJECT
:
structNode
.
setData
SectionWordSize
(
0
);
structNode
.
setPointer
SectionSize
(
1
);
structNode
.
setData
WordCount
(
0
);
structNode
.
setPointer
Count
(
1
);
structNode
.
setPreferredListEncoding
(
schema
::
ElementSize
::
POINTER
);
break
;
}
...
...
@@ -1243,8 +1243,8 @@ kj::ArrayPtr<word> SchemaLoader::Impl::makeUncheckedNodeEnforcingSizeRequirement
if
(
iter
!=
structSizeRequirements
.
end
())
{
auto
requirement
=
iter
->
second
;
auto
structNode
=
node
.
getStruct
();
if
(
structNode
.
getData
SectionWordSize
()
<
requirement
.
dataWordCount
||
structNode
.
getPointer
SectionSize
()
<
requirement
.
pointerCount
||
if
(
structNode
.
getData
WordCount
()
<
requirement
.
dataWordCount
||
structNode
.
getPointer
Count
()
<
requirement
.
pointerCount
||
structNode
.
getPreferredListEncoding
()
<
requirement
.
preferredListEncoding
)
{
return
rewriteStructNodeWithSizes
(
node
,
requirement
.
dataWordCount
,
requirement
.
pointerCount
,
...
...
@@ -1264,10 +1264,10 @@ kj::ArrayPtr<word> SchemaLoader::Impl::rewriteStructNodeWithSizes(
auto
root
=
builder
.
getRoot
<
schema
::
Node
>
();
auto
newStruct
=
root
.
getStruct
();
newStruct
.
setData
SectionWordSize
(
kj
::
max
(
newStruct
.
getDataSectionWordSize
(),
dataWordCount
));
newStruct
.
setPointer
SectionSize
(
kj
::
max
(
newStruct
.
getPointerSectionSize
(),
pointerCount
));
newStruct
.
setData
WordCount
(
kj
::
max
(
newStruct
.
getDataWordCount
(),
dataWordCount
));
newStruct
.
setPointer
Count
(
kj
::
max
(
newStruct
.
getPointerCount
(),
pointerCount
));
if
(
newStruct
.
getData
SectionWordSize
()
+
newStruct
.
getPointerSectionSize
()
>=
2
)
{
if
(
newStruct
.
getData
WordCount
()
+
newStruct
.
getPointerCount
()
>=
2
)
{
newStruct
.
setPreferredListEncoding
(
schema
::
ElementSize
::
INLINE_COMPOSITE
);
}
else
{
newStruct
.
setPreferredListEncoding
(
...
...
@@ -1283,8 +1283,8 @@ void SchemaLoader::Impl::applyStructSizeRequirement(
auto
node
=
readMessageUnchecked
<
schema
::
Node
>
(
raw
->
encodedNode
);
auto
structNode
=
node
.
getStruct
();
if
(
structNode
.
getData
SectionWordSize
()
<
dataWordCount
||
structNode
.
getPointer
SectionSize
()
<
pointerCount
||
if
(
structNode
.
getData
WordCount
()
<
dataWordCount
||
structNode
.
getPointer
Count
()
<
pointerCount
||
structNode
.
getPreferredListEncoding
()
<
preferredListEncoding
)
{
// Sizes need to be increased. Must rewrite.
kj
::
ArrayPtr
<
word
>
words
=
rewriteStructNodeWithSizes
(
...
...
c++/src/capnp/schema.capnp
View file @
12243735
...
...
@@ -72,8 +72,11 @@ struct Node {
file @6 :Void;
struct :group {
dataSectionWordSize @7 :UInt16;
pointerSectionSize @8 :UInt16;
dataWordCount @7 :UInt16;
# Size of the data section, in words.
pointerCount @8 :UInt16;
# Size of the pointer section, in pointers (which are one word each).
preferredListEncoding @9 :ElementSize;
# The preferred element size to use when encoding a list of this struct. If this is anything
...
...
@@ -85,7 +88,7 @@ struct Node {
# some named union or group within a particular parent struct. This node's scopeId refers
# to the parent struct, which may itself be a union/group in yet another struct.
#
# All group nodes share the same data
SectionWordSize and pointerSectionSize
as the top-level
# All group nodes share the same data
WordCount and pointerCount
as the top-level
# struct, and their fields live in the same ordinal and offset spaces as all other fields in
# the struct.
#
...
...
c++/src/capnp/schema.capnp.c++
View file @
12243735
...
...
@@ -249,7 +249,7 @@ const ::capnp::_::RawSchema s_debf55bbfa0fc242 = {
0xdebf55bbfa0fc242
,
b_debf55bbfa0fc242
.
words
,
46
,
d_debf55bbfa0fc242
,
m_debf55bbfa0fc242
,
0
,
2
,
i_debf55bbfa0fc242
,
nullptr
,
nullptr
};
static
const
::
capnp
::
_
::
AlignedData
<
12
7
>
b_9ea0b19b37fb4435
=
{
static
const
::
capnp
::
_
::
AlignedData
<
12
5
>
b_9ea0b19b37fb4435
=
{
{
0
,
0
,
0
,
0
,
5
,
0
,
5
,
0
,
53
,
68
,
251
,
55
,
155
,
177
,
160
,
158
,
24
,
0
,
0
,
0
,
1
,
0
,
5
,
0
,
...
...
@@ -269,64 +269,62 @@ static const ::capnp::_::AlignedData<127> b_9ea0b19b37fb4435 = {
0
,
0
,
0
,
0
,
7
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
7
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
181
,
0
,
0
,
0
,
1
62
,
0
,
0
,
0
,
181
,
0
,
0
,
0
,
1
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
18
4
,
0
,
0
,
0
,
2
,
0
,
1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
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
7
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
112
,
111
,
105
,
110
,
116
,
101
,
114
,
83
,
101
,
99
,
116
,
105
,
111
,
110
,
83
,
105
,
122
,
101
,
0
,
0
,
0
,
0
,
0
,
0
,
112
,
111
,
105
,
110
,
116
,
101
,
114
,
67
,
111
,
117
,
110
,
116
,
0
,
0
,
0
,
0
,
7
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
@@ -386,7 +384,7 @@ static const ::capnp::_::RawSchema* const d_9ea0b19b37fb4435[] = {
static
const
uint16_t
m_9ea0b19b37fb4435
[]
=
{
0
,
4
,
5
,
6
,
3
,
1
,
2
};
static
const
uint16_t
i_9ea0b19b37fb4435
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
};
const
::
capnp
::
_
::
RawSchema
s_9ea0b19b37fb4435
=
{
0x9ea0b19b37fb4435
,
b_9ea0b19b37fb4435
.
words
,
12
7
,
d_9ea0b19b37fb4435
,
m_9ea0b19b37fb4435
,
0x9ea0b19b37fb4435
,
b_9ea0b19b37fb4435
.
words
,
12
5
,
d_9ea0b19b37fb4435
,
m_9ea0b19b37fb4435
,
3
,
7
,
i_9ea0b19b37fb4435
,
nullptr
,
nullptr
};
static
const
::
capnp
::
_
::
AlignedData
<
34
>
b_b54ab3364333f598
=
{
...
...
c++/src/capnp/schema.capnp.h
View file @
12243735
...
...
@@ -537,11 +537,11 @@ public:
return
_reader
.
totalSize
()
/
::
capnp
::
WORDS
;
}
inline
bool
hasData
SectionWordSize
()
const
;
inline
::
uint16_t
getData
SectionWordSize
()
const
;
inline
bool
hasData
WordCount
()
const
;
inline
::
uint16_t
getData
WordCount
()
const
;
inline
bool
hasPointer
SectionSize
()
const
;
inline
::
uint16_t
getPointer
SectionSize
()
const
;
inline
bool
hasPointer
Count
()
const
;
inline
::
uint16_t
getPointer
Count
()
const
;
inline
bool
hasPreferredListEncoding
()
const
;
inline
::
capnp
::
schema
::
ElementSize
getPreferredListEncoding
()
const
;
...
...
@@ -586,13 +586,13 @@ public:
inline
size_t
totalSizeInWords
()
{
return
asReader
().
totalSizeInWords
();
}
inline
bool
hasData
SectionWordSize
();
inline
::
uint16_t
getData
SectionWordSize
();
inline
void
setData
SectionWordSize
(
::
uint16_t
value
);
inline
bool
hasData
WordCount
();
inline
::
uint16_t
getData
WordCount
();
inline
void
setData
WordCount
(
::
uint16_t
value
);
inline
bool
hasPointer
SectionSize
();
inline
::
uint16_t
getPointer
SectionSize
();
inline
void
setPointer
SectionSize
(
::
uint16_t
value
);
inline
bool
hasPointer
Count
();
inline
::
uint16_t
getPointer
Count
();
inline
void
setPointer
Count
(
::
uint16_t
value
);
inline
bool
hasPreferredListEncoding
();
inline
::
capnp
::
schema
::
ElementSize
getPreferredListEncoding
();
...
...
@@ -2525,44 +2525,44 @@ inline void Node::NestedNode::Builder::setId( ::uint64_t value) {
0
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Struct
::
Reader
::
hasData
SectionWordSize
()
const
{
inline
bool
Node
::
Struct
::
Reader
::
hasData
WordCount
()
const
{
return
_reader
.
hasDataField
<
::
uint16_t
>
(
7
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Struct
::
Builder
::
hasData
SectionWordSize
()
{
inline
bool
Node
::
Struct
::
Builder
::
hasData
WordCount
()
{
return
_builder
.
hasDataField
<
::
uint16_t
>
(
7
*
::
capnp
::
ELEMENTS
);
}
inline
::
uint16_t
Node
::
Struct
::
Reader
::
getData
SectionWordSize
()
const
{
inline
::
uint16_t
Node
::
Struct
::
Reader
::
getData
WordCount
()
const
{
return
_reader
.
getDataField
<
::
uint16_t
>
(
7
*
::
capnp
::
ELEMENTS
);
}
inline
::
uint16_t
Node
::
Struct
::
Builder
::
getData
SectionWordSize
()
{
inline
::
uint16_t
Node
::
Struct
::
Builder
::
getData
WordCount
()
{
return
_builder
.
getDataField
<
::
uint16_t
>
(
7
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Struct
::
Builder
::
setData
SectionWordSize
(
::
uint16_t
value
)
{
inline
void
Node
::
Struct
::
Builder
::
setData
WordCount
(
::
uint16_t
value
)
{
_builder
.
setDataField
<
::
uint16_t
>
(
7
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Struct
::
Reader
::
hasPointer
SectionSize
()
const
{
inline
bool
Node
::
Struct
::
Reader
::
hasPointer
Count
()
const
{
return
_reader
.
hasDataField
<
::
uint16_t
>
(
12
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Struct
::
Builder
::
hasPointer
SectionSize
()
{
inline
bool
Node
::
Struct
::
Builder
::
hasPointer
Count
()
{
return
_builder
.
hasDataField
<
::
uint16_t
>
(
12
*
::
capnp
::
ELEMENTS
);
}
inline
::
uint16_t
Node
::
Struct
::
Reader
::
getPointer
SectionSize
()
const
{
inline
::
uint16_t
Node
::
Struct
::
Reader
::
getPointer
Count
()
const
{
return
_reader
.
getDataField
<
::
uint16_t
>
(
12
*
::
capnp
::
ELEMENTS
);
}
inline
::
uint16_t
Node
::
Struct
::
Builder
::
getPointer
SectionSize
()
{
inline
::
uint16_t
Node
::
Struct
::
Builder
::
getPointer
Count
()
{
return
_builder
.
getDataField
<
::
uint16_t
>
(
12
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Struct
::
Builder
::
setPointer
SectionSize
(
::
uint16_t
value
)
{
inline
void
Node
::
Struct
::
Builder
::
setPointer
Count
(
::
uint16_t
value
)
{
_builder
.
setDataField
<
::
uint16_t
>
(
12
*
::
capnp
::
ELEMENTS
,
value
);
}
...
...
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