MCPcopy Index your code
hub / github.com/coder/coder / readFileType

Method readFileType

site/src/utils/tar.ts:133–137  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

131 }
132
133 private readFileType(offset: number) {
134 const typeView = new Uint8Array(this.buffer, offset + 156, 1);
135 const typeStr = String.fromCharCode(typeView[0]);
136 return typeStr;
137 }
138
139 private readFileSize(offset: number) {
140 // offset = 124, length = 12

Callers 1

readFileInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected