Use `absl::StringResizeAndOverwrite()` instead of `std::string::resize()`
when the string is filled soon.

Rename `ResizeStringAmortized()` to `StringResizeAmortized()` for consistency,
and add `StringResizeAndOverwriteAmortized()`.

Use `absl::AppendCordToString()`, which is now available, instead of a custom
`riegeli::cord_internal::AppendCordToString()`.

Cosmetics: for `std::string`, replace `&dest[i]` with `dest.data() + i`
in remaining places. This relies on C++17.
PiperOrigin-RevId: 858971838
16 files changed
tree: dd92ff6f8b7f4a64267920188a41b0e1c1ba1e79
  1. doc/
  2. python/
  3. riegeli/
  4. tf_dependency/
  5. .bazelrc
  6. configure
  7. CONTRIBUTING.md
  8. LICENSE
  9. MANIFEST.in
  10. MODULE.bazel
  11. README.md
README.md

Riegeli

Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers. It supports dense compression, fast decoding, seeking, detection and optional skipping of data corruption, filtering of proto message fields for even faster decoding, and parallel encoding.

See documentation.

Status

Riegeli file format will only change in a backward compatible way (i.e. future readers will understand current files, but current readers might not understand files using future features).

Riegeli C++ API might change in incompatible ways.