Expand description
no_std fixed-buffer writing helpers for provider crates.
Structs§
- Snapshot
Encoder - Fixed-buffer snapshot encoder used by provider request components.
Functions§
- encode_
snapshot - Encodes one immutable
Copysnapshot after an exact measurement pass. - encode_
snapshot_ bounded - Encodes one immutable snapshot under an aggregate byte cap.
- json_
string_ escaped_ len - Returns the checked length of JSON string contents after escaping.
- json_
string_ len - Returns the checked encoded length of a complete JSON string.
- measure_
snapshot - Measures one immutable snapshot without writing output.
- measure_
snapshot_ bounded - Measures one immutable snapshot under an aggregate byte cap.
- percent_
encoded_ len - Returns the checked percent-encoded length of one component.
- u64_
encoded_ len - Returns the base-10 encoded length of an unsigned integer.
- write_
byte - Writes one byte into a caller-owned buffer.
- write_
json_ string - Writes a complete JSON string with surrounding quotes.
- write_
json_ string_ escaped - Writes JSON-string contents with required escaping, without surrounding quotes.
- write_
percent_ encoded - Writes a percent-encoded query component into a caller-owned buffer.
- write_
query_ pair - Writes a percent-encoded query key/value pair.
- write_
query_ separator - Writes
&unless this is the first query pair. - write_
query_ u64 - Writes a percent-encoded query key and base-10 integer value.
- write_
str - Writes a string into a caller-owned buffer without escaping.
- write_
u64 - Writes a base-10 unsigned integer into a caller-owned buffer.