Sha256: 3638b7818365c858be32c2a81d04dfc9201661d1b299aab4a8765fcc9f086a2b
Contents?: true
Size: 554 Bytes
Versions: 29
Compression:
Stored size: 554 Bytes
Contents
$p = $ExecutionContext.SessionState.Path $path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>") $index = <%= index %> $chunkSize = <%= chunk_size %> if (Test-Path $path -PathType Leaf) { $file = [System.IO.File]::OpenRead($path) $seekedTo = $file.Seek($index, [System.IO.SeekOrigin]::Begin) $chunk = New-Object byte[] $chunkSize $bytesRead = $file.Read($chunk, 0, $chunkSize) $bytes = [System.convert]::ToBase64String($chunk[0..$bytesRead]) Write-Host $bytes exit 0 } ElseIf (Test-Path $path -PathType Container) { exit 2 } exit 1
Version data entries
29 entries across 21 versions & 2 rubygems