roxify 1.12.10 → 1.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/dist/roxify_native.exe +0 -0
- package/native/streaming_encode.rs +6 -1
- package/package.json +1 -1
package/Cargo.toml
CHANGED
package/dist/roxify_native.exe
CHANGED
|
Binary file
|
|
@@ -445,7 +445,12 @@ fn write_idat_streaming<W: Write, R: Read>(
|
|
|
445
445
|
deflate_block_remaining -= take;
|
|
446
446
|
cols_written += take;
|
|
447
447
|
} else {
|
|
448
|
-
let
|
|
448
|
+
let max_before_marker = if flat_pos < marker_end_pos {
|
|
449
|
+
marker_end_pos - flat_pos
|
|
450
|
+
} else {
|
|
451
|
+
need
|
|
452
|
+
};
|
|
453
|
+
let take = need.min(zero_remaining).min(buf_size).min(max_before_marker);
|
|
449
454
|
if take == 0 { break; }
|
|
450
455
|
let zeros = vec![0u8; take];
|
|
451
456
|
w.write_all(&zeros)?;
|
package/package.json
CHANGED