mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
std: change set_quirk_enabled to set_quirk
This commit is contained in:
1 parent
176cdf7527
commit
6e84987d33
37 files changed
+644
-490
No files matched your search
@@ -3,6 +3,10 @@
|
||||
|
||||
## Work In Progress
|
||||
|
||||
- Changed `set_quirk_enabled!(quirk: u32, enabled: bool)` to `set_quirk!(key:
|
||||
u32, value: u64) status`.
|
||||
|
||||
|
||||
The dot points below probably aren't of interest unless you're _writing_ Wuffs
|
||||
code (instead of writing C/C++ code that _uses_ Wuffs' standard library).
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ even for malformed input.
|
||||
|
||||
Each quirk is assigned a `uint32_t` value, packed using the [base38 namespace
|
||||
convention](/doc/note/base38-and-fourcc.md). Decoders and encoders can have a
|
||||
`set_quirk_enabled!(quirk base.u32, enabled base.bool)` method whose first
|
||||
`set_quirk!(key: base.u32, value: base.u64) base.status` method whose first
|
||||
argument is this `uint32_t` value.
|
||||
|
||||
For example, the base38 encoding of `"gif "` and `"json"` is `0x0F8586` and
|
||||
|
||||
@@ -25,7 +25,7 @@ APIs](https://github.com/google/wuffs/issues/73), after Wuffs v0.2 is released.
|
||||
|
||||
In Wuffs syntax, the `base.io_transformer` methods are:
|
||||
|
||||
- `set_quirk_enabled!(quirk: u32, enabled: bool)`
|
||||
- `set_quirk!(key: u32, value: u64) status`
|
||||
- `transform_io?(dst: io_writer, src: io_reader, workbuf: slice u8)`
|
||||
- `workbuf_len() range_ii_u64`
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ resist timing attacks.
|
||||
|
||||
In Wuffs syntax, the `base.hasher_u32` methods are:
|
||||
|
||||
- `set_quirk_enabled!(quirk: u32, enabled: bool)`
|
||||
- `set_quirk!(key: u32, value: u64) status`
|
||||
- `update_u32!(x: slice u8) u32`
|
||||
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ In Wuffs syntax, the `base.image_decoder` methods are:
|
||||
- `num_decoded_frame_configs() u64`
|
||||
- `num_decoded_frames() u64`
|
||||
- `restart_frame!(index: u64, io_position: u64) status`
|
||||
- `set_quirk_enabled!(quirk: u32, enabled: bool)`
|
||||
- `set_quirk!(key: u32, value: u64) status`
|
||||
- `set_report_metadata!(fourcc: u32, report: bool)`
|
||||
- `tell_me_more?(dst: io_writer, minfo: nptr more_information, src: io_reader)`
|
||||
- `workbuf_len() range_ii_u64`
|
||||
|
||||
Reference in new issue
Block a user