MCPcopy Create free account
hub / github.com/Effect-TS/effect / bytes

Method bytes

packages/effect/src/encoding/SchemaBinary.ts:1384–1392  ·  view source on GitHub ↗
(b: Uint8Array)

Source from the content-addressed store, hash-verified

1382 this.buf[this.start + this.len++] = b
1383 }
1384 bytes(b: Uint8Array) {
1385 if (b.length >= DEFERRED_BYTES_MIN) {
1386 this.deferred.push({ bytes: b, length: b.length, at: this.len })
1387 return
1388 }
1389 this.ensure(b.length)
1390 this.buf.set(b, this.start + this.len)
1391 this.len += b.length
1392 }
1393 uvarint(n: number) {
1394 this.ensure(10)
1395 const buf = this.buf

Callers 15

ByteSize.test.tsFile · 0.45
testLayerFunction · 0.45
infoFunction · 0.45
Config.test.tsFile · 0.45
Stream.test.tsFile · 0.45
fileInfoFunction · 0.45
HttpBody.test.tsFile · 0.45
Multipart.test.tsFile · 0.45

Calls 3

ensureMethod · 0.95
pushMethod · 0.65
setMethod · 0.65

Tested by 4

infoFunction · 0.36
fileInfoFunction · 0.36
fileSystemFunction · 0.36
precisionServicesFunction · 0.36