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

Function readAscii

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

Source from the content-addressed store, hash-verified

559}
560
561function readAscii(buffer: Uint8Array, offset: number, length: number): string {
562 const value = decodeText(buffer.subarray(offset, offset + length));
563 return value.split("\u0000", 1)[0].trim();
564}
565
566function readOctal(buffer: Uint8Array, offset: number, length: number): number {
567 const text = readAscii(buffer, offset, length).trim();

Callers 2

parseTarFunction · 0.85
readOctalFunction · 0.85

Calls 1

decodeTextFunction · 0.90

Tested by

no test coverage detected