Yes, this is correct.
Quoting Vitali Lovich (2020-04-16 19:45:05)
>If I change UInt64 to Int64 provided that I know I never sent a value
>that's > 2^63 - 1 ? Even if I did am I correct that it's the equivalent
>behaviour of treating it equivalent to a C++ cast?
>
>--
>You recei
If I change UInt64 to Int64 provided that I know I never sent a value
that's > 2^63 - 1 ? Even if I did am I correct that it's the equivalent
behaviour of treating it equivalent to a C++ cast?
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To un
Correct, setting a field with a primitive type will not allocate
additional space.
-Ian
Quoting vlov...@gmail.com (2020-04-16 16:53:46)
>I don't see this explicitly called out
>in� [1]https://capnproto.org/cxx.html� but I just wanted to
>double-check that something like this:
>cap
I don't see this explicitly called out in https://capnproto.org/cxx.html but
I just wanted to double-check that something like this:
capnp::MallocMessageBuilder builder;
auto msg = builder.initRoot();
auto nested = msg.initSomeStruct();
for (int i = 0; i < 10; i++) {
nested.setField(i);
On Monday, March 23, 2020 at 3:59:40 PM UTC+1, Kenton Varda wrote:
>
> Hi German,
>
> This sounds like a job for membranes!
>
> https://github.com/capnproto/capnproto/blob/master/c++/src/capnp/membrane.h
>
> A "membrane" is a wrapper which also automatically wraps any further
> objects that pass