David Renshaw
14237610fb
Fix bug in double-far creation and add StructListUpgradeDoubleFar test.
2017-02-27 18:42:38 -05:00
David Renshaw
1fa0e7a806
DecodeException for unexpected FAR pointer in copyPointer()
2017-02-27 12:10:36 -05:00
David Renshaw
a344568fe8
Adjust error message for the case when copyPointer() hits a far pointer.
...
Malformed input can trigger this case and it does not indicate a bug
in the library.
2017-02-26 16:26:38 -05:00
David Renshaw
b27c5d685d
Fix problem in transferPointer() that would have become a bug once orphans are implemented. See 4d4f831a3d
2016-01-12 22:25:35 -05:00
David Renshaw
0fecc0e9b4
Handle zero-sized struct in transferPointer().
2015-12-16 21:55:03 -05:00
David Renshaw
98500483c9
bugfix: packed input reading was broken for runs longer than 128 words.
2015-09-19 16:11:16 -04:00
David Renshaw
252acd2b32
typo
2015-08-17 22:14:50 -04:00
David Renshaw
2127084a53
Update ByteBuffer.position() one last time before returning from Serialize.read().
2015-08-17 22:13:06 -04:00
David Renshaw
7f13ed114a
Some minor nitpicks.
2015-06-13 15:03:20 -07:00
Mark Raynsford
63c56646de
Implement computeSerializedSizeInWords for non-packed messages. Addresses #33 .
2015-06-13 15:01:36 +00:00
David Renshaw
49a5c6ba64
Implementent MessageBuilder.getRoot() and MessageBuilder.setRoot().
2015-06-11 22:40:30 -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
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
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
8a06a595f6
stub package documentation
2015-01-29 10:33:45 -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
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
David Renshaw
5f98572b7c
setter method for constrained anypointer fields
2014-10-29 09:26:50 -04:00
David Renshaw
dabb9a6ee6
use wildcards
2014-10-28 19:43:25 -04:00
David Renshaw
a578dd1332
drat, this doesn't quite work
2014-10-28 18:23:51 -04:00
David Renshaw
20c20702e1
plugging things in
2014-10-28 15:54:40 -04:00
David Renshaw
4870faf255
init methods for generic fields
2014-10-28 12:51:01 -04:00
David Renshaw
77242cd15d
getters
2014-10-28 11:47:29 -04:00
David Renshaw
7405e3171f
oops, forgot to add PointerFactory
2014-10-27 21:19:31 -04:00
David Renshaw
4c2b7668f0
working with factories
2014-10-27 21:14:16 -04:00
David Renshaw
37516ab6d6
fix bug
2014-10-27 08:54:41 -04:00
David Renshaw
7357bc344e
default text builder was broken
2014-10-26 19:24:30 -04:00
David Renshaw
10f775a11e
some work on getWritableStructListPointer. still buggy
2014-10-26 18:56:58 -04:00
David Renshaw
ec024a2597
move WirePointer.get() to SegmentReader
2014-10-26 18:22:48 -04:00
David Renshaw
29a51b067a
get rid of bit0Offset
2014-10-26 10:13:12 -04:00
David Renshaw
9c5b64b98b
get rid of struct list packing optimization
2014-10-26 09:31:09 -04:00
David Renshaw
fb239f612f
fix a few more bugs
2014-10-18 21:25:38 -04:00
David Renshaw
26942d46c8
fix some more bugs
2014-10-17 20:53:51 -04:00
David Renshaw
fafb104401
fix one bug. there are more
2014-10-17 18:13:27 -04:00
David Renshaw
8e1de6012c
make somewhat less buggy
2014-10-17 09:36:16 -04:00
David Renshaw
1db37b741d
setStructPointer, setListPointer. still buggy
2014-10-16 18:54:11 -04:00
David Renshaw
1d69d9a7ab
a bit more
2014-10-15 21:43:57 -04:00
David Renshaw
561ca944c8
more copyPointer
2014-10-15 20:25:45 -04:00
David Renshaw
1ab3601bf0
a bit of work on copyPointer
2014-10-15 18:34:05 -04:00
David Renshaw
7bc197456d
handle empty struct allocation
2014-10-14 20:17:07 -04:00
David Renshaw
9e0bd28c60
asByteBuffer for Buidlers
2014-10-13 20:20:51 -04:00
David Renshaw
4adb78bb89
Text.Reader.asByteBuffer()
2014-10-13 20:11:36 -04:00
David Renshaw
be23d22a89
allow the List(Primitive) -> List(Struct) upgrade path, for now
2014-10-11 12:46:47 -04:00
David Renshaw
c941f5960f
FieldSize -> ElementSize
2014-10-11 09:25:31 -04:00
David Renshaw
40fc0193c2
some work on copyPointer
2014-10-11 09:18:41 -04:00
David Renshaw
cc5ec73ef5
rename some SerializePacked methods
2014-10-10 13:34:32 -04:00
David Renshaw
8cc1cfa60c
ReaderOptions
2014-10-10 12:10:15 -04:00
David Renshaw
03774fff34
add license comment to source files
2014-10-08 16:20:15 -04:00
David Renshaw
1a039892af
read limiting
2014-10-08 15:16:17 -04:00
David Renshaw
2ede4244b1
RefDefault
2014-10-08 13:37:26 -04:00
David Renshaw
6e9a325ca5
eradicate PointerBuilder
2014-10-08 12:22:58 -04:00
David Renshaw
b876c52ecd
get rid of PointerReader
2014-10-08 11:12:52 -04:00
David Renshaw
1cef64e2da
Text.factory, Data.factory
2014-10-08 11:00:22 -04:00
David Renshaw
dce3c46cf1
avoiding allocations of PointerReader and PointerBuilder
2014-10-08 09:24:48 -04:00
David Renshaw
b884ad11c4
reuse some code
2014-10-08 08:49:18 -04:00
David Renshaw
4d842f0ef7
abstracting
2014-10-07 22:35:08 -04:00
David Renshaw
a3c836c619
ListBuilder.Factory, ListReader.Factory
2014-10-07 21:21:15 -04:00
David Renshaw
b4f34cb393
FromStructReader -> StructReader.Factory
2014-10-07 17:47:42 -04:00
David Renshaw
3aefbb76e0
fill in a bit
2014-10-07 17:05:37 -04:00
David Renshaw
89ea97a401
inheritance for lists
2014-10-07 16:49:36 -04:00
David Renshaw
868cc5072d
bulk put
2014-10-07 13:14:07 -04:00
David Renshaw
6495ab1da8
get the tests passing once again
2014-10-07 12:19:30 -04:00
David Renshaw
24e4183fc0
asReader
2014-10-07 12:19:29 -04:00
David Renshaw
25a537c323
bring up to date
2014-10-07 12:19:29 -04:00
David Renshaw
7adaa91435
stop using ByteBuffer.mark()
2014-10-07 12:18:55 -04:00
David Renshaw
e05c743134
filling in the holes
2014-10-06 20:04:01 -04:00
David Renshaw
f84e1fa430
towards builder pointer defaults
2014-10-06 15:06:56 -04:00
David Renshaw
195d688970
list reader defaults
2014-10-06 14:54:15 -04:00
David Renshaw
de33553666
struct defaults
2014-10-06 14:05:59 -04:00
David Renshaw
f9dbcc3a53
some simplification
2014-10-06 11:58:33 -04:00
David Renshaw
80e1471323
list constants
2014-10-06 11:15:33 -04:00
David Renshaw
710c03f7f9
oh right, endianness
2014-10-06 10:17:39 -04:00
David Renshaw
95d0898c3f
basic support for struct constants. still broken
2014-10-06 09:35:26 -04:00
David Renshaw
a3f3c88e35
setStruct and visibility
2014-10-05 10:01:43 -04:00
David Renshaw
da13c77541
more ListList
2014-10-04 13:27:18 -04:00
David Renshaw
a5e91d9f7d
a start on ListList
2014-10-04 11:52:51 -04:00
David Renshaw
389033d1be
Data defaults
2014-10-03 13:24:51 -04:00
David Renshaw
dc771a07cb
default text fields
2014-10-03 12:01:09 -04:00
David Renshaw
b269458232
thread safety; const indentation
2014-10-03 10:40:00 -04:00
David Renshaw
7e49ede5a3
get EnumList to work
2014-10-03 09:40:36 -04:00
David Renshaw
ca271e2824
a start on EnumList
2014-10-02 18:01:21 -04:00
David Renshaw
c44e73267b
Data constants
2014-10-02 15:27:07 -04:00
David Renshaw
df389a939b
remove InternalError
2014-10-02 12:23:29 -04:00
David Renshaw
c0da82a6b8
assertions
2014-10-02 12:19:34 -04:00
David Renshaw
6ce41d20bd
generate init methods for AnyPointer fields
2014-10-02 11:54:37 -04:00
David Renshaw
2ed3f5f76c
expose schema bytes as read-only ByteBuffer, not byte[]
2014-10-02 08:46:36 -04:00