seasonouc / protostuff

Automatically exported from code.google.com/p/protostuff
Apache License 2.0
0 stars 0 forks source link

writing greater than 2GB returns overflows the int returned from writeTo() #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Generate a message that is at least 2^32 bytes in size
2.use ProtostuffIOUtil.writeTo(..) to output it (i used a file)
3.

What is the expected output? What do you see instead?
the actual length written, instead it's:
written: -1331439790

Of course I can and will calculate the overflow, but it would be nice if it 
returned a long.

What version of the product are you using? On what operating system?
1.0 on mac

Please provide any additional information below.

Original issue reported on code.google.com by JeffreyD...@gmail.com on 29 Feb 2012 at 6:09

GoogleCodeExporter commented 8 years ago
oops typo, i meant that i create a message that is 2^32 / 2 bytes

Original comment by JeffreyD...@gmail.com on 29 Feb 2012 at 6:12