RFR 8139206: Add InputStream readNBytes(int len) (original) (raw)
Brian Burkhalter brian.burkhalter at oracle.com
Wed Jan 24 00:50:31 UTC 2018
- Previous message: RFR 8139206: Add InputStream readNBytes(int len)
- Next message: RFR 8139206: Add InputStream readNBytes(int len)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 23, 2018, at 1:19 AM, Weijun Wang <weijun.wang at oracle.com> wrote:
+ * Therefore, the method may be safely called with very large values of + * {@code len} provided sufficient memory is available.
What does "sufficient memory" mean? For len, or the number of available bytes?
It means enough bytes for the collectivity of the intermediate and returned buffers. This is already stated to be proportional to ‘len’.
Brian
- Previous message: RFR 8139206: Add InputStream readNBytes(int len)
- Next message: RFR 8139206: Add InputStream readNBytes(int len)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]