Closed dragisak closed 1 year ago
Per Java docs, read(b, off, len) returns the number of bytes read. So when enqueuing, you can't just enqueue the whole buffer. Only the slice of buffer between off and the number of bytes read.
read(b, off, len)
off
Per Java docs,
read(b, off, len)
returns the number of bytes read. So when enqueuing, you can't just enqueue the whole buffer. Only the slice of buffer betweenoff
and the number of bytes read.