Envelope hint only. Core decoding still authenticates CODECS and the hash. Historical payloads keep the legacy label; they are never upgraded here.
(bytes: &[u8])
| 313 | /// Envelope hint only. Core decoding still authenticates CODECS and the hash. |
| 314 | /// Historical payloads keep the legacy label; they are never upgraded here. |
| 315 | fn change_schema(bytes: &[u8]) -> &'static str { |
| 316 | if change_file_header(bytes).is_ok_and(|header| header.version == FIELD_CODEC_FORMAT_VERSION) { |
| 317 | CHANGE_SCHEMA |
| 318 | } else { |
| 319 | LEGACY_CHANGE_SCHEMA |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | fn change_file_header(bytes: &[u8]) -> Result<FileHeader, String> { |
| 324 | let header = bytes |
no test coverage detected