whueric / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Make Input.optional() accessible, or provide an eof() method #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When writing a reader over a Kryo Input, it's nice to know when one has reached 
end of stream at a "normal" point.

The way to do this is to call optional(1) before trying to read. However, 
optional() isn't public.

Please make optional() public, or create a public boolean eof() { return 
optional(1) > 0; }

Original issue reported on code.google.com by shevek.h...@googlemail.com on 11 Sep 2012 at 2:23

GoogleCodeExporter commented 8 years ago
eof() has been added. Thanks!

Original comment by nathan.s...@gmail.com on 30 Nov 2012 at 10:14