Commit graph

596 commits

Author SHA1 Message Date
David Renshaw
2127084a53 Update ByteBuffer.position() one last time before returning from Serialize.read(). 2015-08-17 22:13:06 -04:00
David Renshaw
755844c81a Add test for computSerializedSizeInWords(). 2015-06-13 15:15:59 -07:00
David Renshaw
7f13ed114a Some minor nitpicks. 2015-06-13 15:03:20 -07:00
David Renshaw
87b15caec9 Merge pull request #35 from io7m/master
Implement computeSerializedSizeInWords for non-packed messages.
2015-06-13 15:00:30 -07:00
Mark Raynsford
63c56646de
Implement computeSerializedSizeInWords for non-packed messages. Addresses #33. 2015-06-13 15:01:36 +00:00
David Renshaw
eeb53b43b8 Update capnproto version used by Travis. 2015-06-11 22:45:07 -04:00
David Renshaw
49a5c6ba64 Implementent MessageBuilder.getRoot() and MessageBuilder.setRoot(). 2015-06-11 22:40:30 -04:00
David Renshaw
89e3dff2da Merge pull request #32 from bchallenor/master
Support reading all segments from a single ByteBuffer (e.g. memory mapped file)
2015-05-04 11:07:51 -04:00
Ben Challenor
d2634a21d0 Support reading all segments from a single ByteBuffer, with tests
Sometimes it is desirable to read all segments from a single ByteBuffer,
e.g. if reading messages from a memory-mapped file.

Here we add such support, and add a test to check that the ByteBuffer
read behaves the same as the ReadableByteChannel read.
2015-05-03 19:04:07 +01:00
Ben Challenor
ba0c120c77 Idiomatic scala - var -> val 2015-05-03 15:43:33 +01:00
Ben Challenor
28fac634bc Idiomatic scala - remove explicit return 2015-05-03 15:43:09 +01:00
Ben Challenor
c601c6805f Idiomatic scala - override method with val 2015-05-03 15:42:26 +01:00
Ben Challenor
50f4fe9d51 Idiomatic Scala - remove semicolons
Note this means that a few newlines have to be added to eliminate
ambiguity.
2015-05-03 15:35:07 +01:00
Ben Challenor
2ec3b6b125 Rename Scala files to match class names 2015-05-03 15:05:41 +01:00
David Renshaw
717d977233 Fix integer overflow issues. 2015-04-20 21:10:52 -04:00
dvdreddy
b56b91531c Fix setting default vals for Enums
Currently since we are xoring the default value in
the enums, if a enum field is set and then queries
you will encouter wrong values being returned. Adding
the xor offset in the generated code fixes this. Also
added a small test for this check
2015-03-11 17:40:54 -04:00
David Renshaw
0e8fe55593 Fix integer overflow bugs. 2015-03-08 20:39:44 -04:00
David Renshaw
2b1d5c201e Fix integer underflow bug. 2015-03-08 20:09:56 -04:00
David Renshaw
6cd61ff149 Prevent CPU amplification attack. 2015-03-03 10:46:42 -05:00
David Renshaw
a127b08191 add missing return statement 2015-03-03 09:44:04 -05:00
David Renshaw
05ee85b375 upgrade travis config to use new release of Cap'n Proto 2015-03-02 19:43:17 -05:00
David Renshaw
df1812c7eb prevent sbt from autoadding scalalib dependencies 2015-02-25 20:38:38 -05:00
Pedro Larroy
fd3f6447ac Publishing to OSS sonatype 2015-02-24 14:34:02 +01:00
David Renshaw
60d19ed4cb Fix up license info and add version number to sbt config. 2015-02-22 13:41:45 -05:00
dvdreddy
3c5dbf1165 Add OSS publishing to runtime 2015-02-19 18:27:37 -08:00
David Renshaw
86deb83f82 error messages that point to java.capnp 2015-02-16 12:46:35 -05:00
David Renshaw
2472fad686 add Make recipe for cross compiling capnpc-java to win32 2015-02-16 10:54:47 -05:00
David Renshaw
0e33e0908d copy-pasto 2015-02-16 09:13:29 -05:00
David Renshaw
6fafd065be change back to the right directory 2015-02-16 09:07:50 -05:00
David Renshaw
87993eb407 openjdk8 doesn't exist. forgot to cd. 2015-02-16 09:04:49 -05:00
David Renshaw
b9bf0a7bd1 typo 2015-02-16 09:02:28 -05:00
David Renshaw
dd36d7252f set the C compiler in travis config 2015-02-16 09:00:02 -05:00
David Renshaw
e0a0204e3f update travis: java 8, capnp 0.5.1 2015-02-16 08:55:50 -05:00
David Renshaw
8a06a595f6 stub package documentation 2015-01-29 10:33:45 -05:00
David Renshaw
cdf2f464b7 simplify target directory for example and benchmark 2015-01-28 13:47:52 -05:00
David Renshaw
9269bf1e71 update benchmark script for new location of compiled classes 2015-01-28 09:57:36 -05:00
David Renshaw
059b4c4c6e Merge pull request #11 from velvia/master
Make it easy to publish jars
2015-01-05 18:31:55 -08:00
Evan Chan
4e42cf017e Make it easy to publish jars 2015-01-05 13:30:54 -08:00
David Renshaw
aa25559900 add version check 2014-11-29 08:50:43 -05:00
David Renshaw
ed615fdeb9 slightly more robust Makefile. Fixes #7 2014-11-26 12:36:10 -05:00
David Renshaw
855f635e50 finish implementation of followBuilderFars() 2014-11-18 08:49:02 -05:00
David Renshaw
9ba6f3970c finish implementation of transferPointer 2014-11-17 18:42:44 -05:00
David Renshaw
57f8a5cdfc struct field upgrades 2014-11-17 17:39:16 -05:00
David Renshaw
a5f234136f more support for struct list upgrades 2014-11-16 21:17:56 -05:00
David Renshaw
6174de6744 builder upgrade from List(Primitive) to List(Struct) 2014-11-16 19:06:35 -05:00
David Renshaw
00cc63dfe8 reading double far pointers 2014-11-16 14:14:15 -05:00
David Renshaw
c25b96fe83 fill in some test data 2014-11-11 17:35:07 -05:00
David Renshaw
fd3efb080e add a Zeroing test and fix some bugs 2014-11-09 16:32:51 -05:00
David Renshaw
a7d3175f60 finish zeroObject(). still needs tests 2014-11-09 13:36:24 -05:00
David Renshaw
2902b6c753 working on WireHelpers.zeroObject 2014-11-04 21:53:34 -05:00