MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / FullHeaderSize

Method FullHeaderSize

Libraries/unrar/archive.cpp:287–298  ·  view source on GitHub ↗

Calculate the block size including encryption fields and padding if any.

Source from the content-addressed store, hash-verified

285
286// Calculate the block size including encryption fields and padding if any.
287uint Archive::FullHeaderSize(size_t Size)
288{
289 if (Encrypted)
290 {
291 Size = ALIGN_VALUE(Size, CRYPT_BLOCK_SIZE); // Align to encryption block size.
292 if (Format == RARFMT50)
293 Size += SIZE_INITV;
294 else
295 Size += SIZE_SALT30;
296 }
297 return uint(Size);
298}
299
300
301

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected