MCPcopy
hub / github.com/jvilk/BrowserFS / emptyBuffer

Function emptyBuffer

src/core/util.ts:162–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 * @hidden
161 */
162export function emptyBuffer(): Buffer {
163 if (emptyBuff) {
164 return emptyBuff;
165 }
166 return emptyBuff = Buffer.alloc(0);
167}
168
169/**
170 * Option validator for a Buffer file system option.

Callers 7

initializeMethod · 0.90
openMethod · 0.90
createFileSyncMethod · 0.90
createFileMethod · 0.90
asyncDownloadFileModernFunction · 0.90
constructorMethod · 0.90
copyingSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected