Hi Dave,

I had a closer look at java.io.BufferedInputStream.read(byte b[], int off, int 
len) and the 2nd "offset" parameter is the offset in the buffer, not the input, 
so it won't suit my purposes and will have to use skip instead.

Would it be possible to update skip to take a Long value instead of Int for the 
next release? For now I can just try skipping multiple times.

Cheers,

Jason


On 01/11/2013, at 6:38 AM, David P Grove <gro...@us.ibm.com> wrote:

> Jason Separovic <jseparo...@nexoss.com.au> wrote on 10/31/2013 02:37:27 AM:
> 
> > 
> > I'm new to X10
> 
> Welcome!
> 
> 
> > 
> > Whilst trying to read chunks of a large file into memory, I've ran 
> > into some issues trying to skip the reader to a point in the file 
> > greater than Int can handle.
> > Is there any reason why skip is not using Long? Is there a way to 
> > skip in a file using Long instead of having to skip multiple times 
> > to account for the Int limitation?
> 
> No good reason, just historical (and probably to match the use of ints to 
> index arrays/rails).
> 
> > 
> > I noticed that in v2.4, x10.io.Reader.read can now support a Long 
> > offset. I'm currently using 2.3.1 due to build issues with 2.4, but 
> > I think I'll give it another go and try this as a workaround.
> > 
> 
> Should work in 2.4, but I don't know that we actually tested it with a long > 
> 2^31.  If you run into problems, please let us know so we can fix it for the 
> next release.
> 
> thanks,
> 
> --dave
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk_______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to