mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add a writer1.available method.
This commit is contained in:
1 parent
ac405d485b
commit
c3ae0534df
6 files changed
+32
-8
No files matched your search
+7
-2
@@ -1088,8 +1088,13 @@ puffs_flate_status puffs_flate_decoder_decode_uncompressed(
|
||||
goto exit;
|
||||
}
|
||||
v_length -= v_n;
|
||||
status = PUFFS_FLATE_SUSPENSION_SHORT_READ;
|
||||
PUFFS_COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(3);
|
||||
if (((uint64_t)(b_wend_dst - b_wptr_dst)) == 0) {
|
||||
status = PUFFS_FLATE_SUSPENSION_SHORT_WRITE;
|
||||
PUFFS_COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(3);
|
||||
} else {
|
||||
status = PUFFS_FLATE_SUSPENSION_SHORT_READ;
|
||||
PUFFS_COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(4);
|
||||
}
|
||||
}
|
||||
label_0_break:;
|
||||
|
||||
|
||||
Reference in new issue
Block a user