Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ padding
Function
padding
packages/effect/src/encoding/Tar.ts:558–558 ·
view source on GitHub ↗
(size: number)
Source
from the content-addressed store, hash-verified
556
const
PERMISSION_BITS = 0o7777
557
558
const
padding = (size: number): number => (BLOCK - (size % BLOCK)) % BLOCK
559
560
const
isZeroBlock = (block: Uint8Array): boolean => {
561
for
(
let
i = 0; i < BLOCK; i++) {
Callers
2
advance
Method · 0.70
end
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected