DoxigAlpha

blockPadding

Function parameters

Parameters

#
size:u64

Type definitions in this namespace

Types

#
Diagnostics
Provide this to receive detailed error messages.
PipeOptions
pipeToFileSystem options
FileKind
Type of the file returned by iterator `next` method.
Iterator
Iterator over entries in the tar file represented by reader.

Saves tar file content to the file systems.

Functions

#
pipeToFileSystem
Saves tar file content to the file systems.

Source

Implementation

#
fn blockPadding(size: u64) usize {
    const block_rounded = std.mem.alignForward(u64, size, Header.SIZE); // size rounded to te block boundary
    return @intCast(block_rounded - size);
}