문제

lets say byte[] b = 1024

for(int k = 0; k < 10; k++)
    data.readFully(b);

does the readFully() method increment by itself if it is put inside of a loop kind of like the nextLine() method? or will continue to read the same 1024 bytes over and over?

도움이 되었습니까?

해결책

Yes after reading the specified number of bytes the pointer will be moved.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top