Commit graph

8 commits

Author SHA1 Message Date
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
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
db04e2da5e simplify naming for serialize functions 2014-10-01 13:15:46 -04:00
David Renshaw
196f67bb5d stop using GatheringByteChannel 2014-09-03 17:21:44 -04:00
David Renshaw
dbeb32dcca write until hasRemaining() == false 2014-06-30 10:30:04 -04:00
David Renshaw
94f76d3964 oops, forgot to add new file 2014-05-24 14:39:47 -04:00