8162520: (fs) FileStore should support file stores with > Long.MAX_VALUE capacity
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Oct 29 23:09:28 UTC 2019
Hi Peter,
> On Oct 29, 2019, at 3:30 PM, Peter Levart <peter.levart at gmail.com> wrote:
>
> There is a carrier type with greater (i.e. unlimited) bit depth available - BigInteger. Why not add 3 methods (getBigXxx...) to return sizes in BigInteger bytes? These are not performance critical methods and hence waiting for value types is not absolutely necessary.
>
> What do you think?
Yes, that was considered. I do not have anything against it myself. The idea of adding the get*Blocks() methods was however partly to avoid selecting a new carrier type for the size-in-bytes values by returning the respective block counts and letting the caller make the decision of where to store the product num<Type>Blocks * blockSize.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191029/7017d549/attachment.html>
More information about the nio-dev
mailing list