On Fri, 18 Apr 2025 15:10:02 GMT, Chen Liang <li...@openjdk.org> wrote:

>> Maybe it can be implemented by referring to `InputStream::readNBytes(int)` 
>> (The default implementation of `InputStream::readAllBytes()` is based on it):
>> 
>> https://github.com/openjdk/jdk/blob/22e8a97a1ce4e1c781fbc6f1e271c477fe95f069/src/java.base/share/classes/java/io/InputStream.java#L396-L458
>
> If accumulation of array is necessary, I think the "variable sized array" in 
> #24232 may help/

https://github.com/openjdk/jdk/pull/24728#issuecomment-2815687444

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2052949330

Reply via email to