Re: [capnproto] Is it backwards compatible to change an integer from unsigned to signed?

2020-04-16 Thread Ian Denhardt
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

[capnproto] Is it backwards compatible to change an integer from unsigned to signed?

2020-04-16 Thread Vitali Lovich
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

Re: [capnproto] Does setting the same "primitive" field repeatedly cause size to grow?

2020-04-16 Thread Ian Denhardt
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

[capnproto] Does setting the same "primitive" field repeatedly cause size to grow?

2020-04-16 Thread vlovich
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);

Re: [capnproto] Object capabilities and disposal when trying to log out users from a server

2020-04-16 Thread german . gomez . efi
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