|
|
@ -114,10 +114,12 @@ class TextFile(private val book: Book) { |
|
|
|
).also { length = it } > 0 |
|
|
|
).also { length = it } > 0 |
|
|
|
) { |
|
|
|
) { |
|
|
|
var end = bufferStart + length |
|
|
|
var end = bufferStart + length |
|
|
|
for (i in bufferStart + length - 1 downTo 0) { |
|
|
|
if (end == bufferSize) { |
|
|
|
if (buffer[i] == blank) { |
|
|
|
for (i in bufferStart + length - 1 downTo 0) { |
|
|
|
end = i |
|
|
|
if (buffer[i] == blank) { |
|
|
|
break |
|
|
|
end = i |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//将数据转换成String, 不能超过length |
|
|
|
//将数据转换成String, 不能超过length |
|
|
|