MCPcopy Create free account
hub / github.com/cloudflare/agents / readOctal

Function readOctal

packages/shell/src/extras.ts:566–569  ·  view source on GitHub ↗
(buffer: Uint8Array, offset: number, length: number)

Source from the content-addressed store, hash-verified

564}
565
566function readOctal(buffer: Uint8Array, offset: number, length: number): number {
567 const text = readAscii(buffer, offset, length).trim();
568 return text ? Number.parseInt(text, 8) : 0;
569}
570
571function getExtension(path: string): string | null {
572 const idx = path.lastIndexOf(".");

Callers 1

parseTarFunction · 0.85

Calls 1

readAsciiFunction · 0.85

Tested by

no test coverage detected