MCPcopy Create free account
hub / github.com/deepclause/agentvm / hasSpace

Method hasSpace

src/ringbuffer.js:87–89  ·  view source on GitHub ↗

* Check if buffer has enough space (non-blocking) * @param {number} needed - Bytes needed * @returns {boolean}

(needed)

Source from the content-addressed store, hash-verified

85 * @returns {boolean}
86 */
87 hasSpace(needed) {
88 return this.availableSpace() >= needed;
89 }
90
91 /**
92 * Signal the worker to wake up and process data

Callers 1

writeTcpDataMethod · 0.95

Calls 1

availableSpaceMethod · 0.95

Tested by

no test coverage detected