MCPcopy Create free account
hub / github.com/denoland/std / assertValidLinkname

Function assertValidLinkname

tar/tar_stream.ts:704–707  ·  view source on GitHub ↗
(linkname: string)

Source from the content-addressed store, hash-verified

702 * ```
703 */
704export function assertValidLinkname(linkname: string): void {
705 const buffer = new Uint8Array(355);
706 checkLinkname(new TextEncoder().encodeInto(linkname, buffer).written);
707}
708
709function checkLinkname(bytes: number): void {
710 if (bytes === 0) {

Callers 1

tar_stream_test.tsFile · 0.90

Calls 1

checkLinknameFunction · 0.85

Tested by

no test coverage detected