964 |
{ |
{ |
965 |
if (this.readDataFromBlock) |
if (this.readDataFromBlock) |
966 |
{ |
{ |
967 |
if (this.blockDataPosition + length > this.blockDataBytes) |
int remain = this.blockDataBytes - this.blockDataPosition; |
968 |
{ |
if (remain == 0) |
969 |
int remain = this.blockDataBytes - this.blockDataPosition; |
{ |
970 |
if (remain != 0) |
readNextBlock(); |
971 |
{ |
remain = this.blockDataBytes - this.blockDataPosition; |
972 |
System.arraycopy(this.blockData, this.blockDataPosition, |
} |
973 |
data, offset, remain); |
length = Math.min(length, remain); |
|
offset += remain; |
|
|
length -= remain; |
|
|
} |
|
|
readNextBlock (); |
|
|
} |
|
|
|
|
974 |
System.arraycopy(this.blockData, this.blockDataPosition, |
System.arraycopy(this.blockData, this.blockDataPosition, |
975 |
data, offset, length); |
data, offset, length); |
976 |
this.blockDataPosition += length; |
this.blockDataPosition += length; |