Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WinterTC55/iter-streams
/ functions
Functions
947 in github.com/WinterTC55/iter-streams
⨍
Functions
947
◇
Types & classes
113
↓ 6 callers
Method
getText
()
samples/util.ts:86
↓ 6 callers
Method
getText
()
samples/util.ts:126
↓ 6 callers
Function
pipeToSync
* Write a sync source through transforms to a sync writer. * * @param source - The sync source yielding Uint8Array[] batches * @param args - Variad
src/pull.js:1189
↓ 6 callers
Function
processChunk
(chunk: Uint8Array | null)
samples/14-compression.ts:67
↓ 6 callers
Function
readBranch
(stream: ReadableStream<Uint8Array>)
benchmarks/05-tee-branching.ts:74
↓ 6 callers
Method
rejectPendingDrains
* Reject all pending drains with an error.
src/push.ts:507
↓ 6 callers
Method
resolvePendingReads
* Resolve pending reads if data is available.
src/push.ts:452
↓ 6 callers
Method
toString
()
samples/01-basic-creation.ts:230
↓ 6 callers
Function
toUint8Array
* Convert a chunk (string or Uint8Array) to Uint8Array. * Strings are UTF-8 encoded.
src/utils.js:17
↓ 6 callers
Method
trimFront
* Remove `count` items from the head without returning them. O(count) for GC cleanup.
src/ringbuffer.ts:70
↓ 6 callers
Function
verb
(n)
src/broadcast.js:20
↓ 6 callers
Function
writeBatch
(batch: Uint8Array[])
src/pull.ts:693
↓ 5 callers
Function
array
* Collect all chunks as an array from an async or sync source. * * @param source - Iterable or async iterable yielding Uint8Array[] batches * @para
src/consumers.js:394
↓ 5 callers
Function
arraySync
* Collect all chunks as an array from a sync source. * * @param source - Sync iterable yielding Uint8Array[] batches * @param options - Optional li
src/consumers.js:160
↓ 5 callers
Method
cancel
* Cancel all consumers and reject pending writes on the writer. * Sets ended=true so that subsequent _abort() calls early-return.
src/broadcast.ts:237
↓ 5 callers
Method
cancel
* Cancel all consumers and close source.
src/share.ts:217
↓ 5 callers
Function
consumeAsyncPipeline
* Consume async pipeline and return total bytes
benchmarks/08-pipeline-sync.ts:162
↓ 5 callers
Function
consumeSyncPipeline
* Consume sync pipeline and return total bytes
benchmarks/08-pipeline-sync.ts:149
↓ 5 callers
Function
consumeWeb
(stream: ReadableStream<Uint8Array>)
benchmarks/20-memory-allocations.ts:66
↓ 5 callers
Function
consumeWeb
(stream: ReadableStream<Uint8Array>)
benchmarks/21-memory-sustained.ts:69
↓ 5 callers
Function
consumeWebStream
* Consume a Web Stream and return total bytes
benchmarks/08-pipeline-sync.ts:133
↓ 5 callers
Function
createBunComparison
( scenario: string, newStream: BenchmarkResult, bunDirect: BenchmarkResult )
benchmarks/17-bun-direct-streams.ts:127
↓ 5 callers
Function
createMockSyncWriter
()
src/pull.test.ts:38
↓ 5 callers
Function
createNodeWriter
* Create a Writer that pipes to a Node.js Writable stream. * * Features: * - Proper backpressure handling (respects drain events) * - Error propag
samples/12-nodejs-interop.ts:76
↓ 5 callers
Function
createWebStreamPipeline
* Create a Web Streams pipeline with sync pull source and transforms
benchmarks/08-pipeline-sync.ts:98
↓ 5 callers
Function
deriveKey
(password: string, salt: Uint8Array, iterations = 100000)
samples/15-encryption.ts:544
↓ 5 callers
Function
formatSpeedup
(speedup: number, confidence: string)
benchmarks/utils.ts:417
↓ 5 callers
Function
isSyncIterable
* Check if value is a sync iterable (has Symbol.iterator).
src/from.ts:71
↓ 5 callers
Method
resolvePendingWrites
* Resolve pending writes if buffer has space. * Also resolves pending drains when buffer has space.
src/push.ts:477
↓ 5 callers
Function
source
()
benchmarks/09-sync-async-comparison.ts:121
↓ 5 callers
Function
source
()
benchmarks/07-sync-generators.ts:45
↓ 5 callers
Function
step
(result)
src/consumers.js:14
↓ 5 callers
Function
step
(result)
src/pull.js:13
↓ 5 callers
Function
textSync
* Collect and decode text from a sync source. * * @param source - Sync iterable yielding Uint8Array[] batches * @param options - Optional encoding
src/consumers.js:129
↓ 5 callers
Function
toString
(bytes: Uint8Array)
src/push.test.ts:25
↓ 4 callers
Method
_abort
* Signal error. Notifies all consumers and detaches them.
src/broadcast.ts:341
↓ 4 callers
Method
_end
* Signal end of stream.
src/broadcast.ts:316
↓ 4 callers
Method
_grow
* Double the backing capacity, linearizing the circular layout.
src/ringbuffer.ts:135
↓ 4 callers
Function
collectNodeStreamBytes
(stream: Readable)
benchmarks/01-throughput.ts:46
↓ 4 callers
Function
collectNodeStreamBytes
(stream: Readable)
benchmarks/11-fast-ws-throughput.ts:49
↓ 4 callers
Function
collectWebStreamBytes
(stream: ReadableStream<Uint8Array>)
benchmarks/01-throughput.ts:24
↓ 4 callers
Function
consumeNew
(readable: AsyncIterable<Uint8Array[]>)
benchmarks/20-memory-allocations.ts:77
↓ 4 callers
Function
consumeNew
(readable: AsyncIterable<Uint8Array[]>)
benchmarks/21-memory-sustained.ts:80
↓ 4 callers
Function
createDirectStream
* Create a Bun Direct ReadableStream that yields one chunk per pull() call. * This mirrors the standard ReadableStream pull pattern but uses write()
benchmarks/17-bun-direct-streams.ts:82
↓ 4 callers
Method
createRawConsumer
* Create a raw consumer iterable (internal helper).
src/share.ts:105
↓ 4 callers
Function
createWebUppercase
()
benchmarks/html/benchmarks.js:89
↓ 4 callers
Function
createZlibTransformObject
* Generic factory for creating zlib transform objects.
samples/14-compression.ts:256
↓ 4 callers
Method
drain
* Drain all buffered chunks into a single flat array.
src/push.ts:441
↓ 4 callers
Function
flattenTransformYieldAsync
* Flatten transform yield to Uint8Array chunks (async).
src/pull.ts:152
↓ 4 callers
Function
flattenTransformYieldAsync
* Flatten transform yield to Uint8Array chunks (async).
src/pull.js:198
↓ 4 callers
Function
fmt
(r: BenchmarkResult)
benchmarks/utils.ts:426
↓ 4 callers
Function
generateBatches
()
benchmarks/12-fast-ws-push-streams.ts:323
↓ 4 callers
Method
getMinCursor
* Get the slowest consumer's cursor position.
src/share.ts:364
↓ 4 callers
Method
indexOf
* Find the logical index of `item` (reference equality). O(n). * Returns -1 if not found.
src/ringbuffer.ts:87
↓ 4 callers
Function
isPrimitiveChunk
* Check if value is a primitive chunk (string, ArrayBuffer, or ArrayBufferView).
src/from.js:97
↓ 4 callers
Function
isPrimitiveChunk
* Check if value is a primitive chunk (string, ArrayBuffer, or ArrayBufferView).
src/from.ts:37
↓ 4 callers
Function
isToStreamable
* Check if value implements ToStreamable protocol.
src/from.js:109
↓ 4 callers
Function
isToStreamable
* Check if value implements ToStreamable protocol.
src/from.ts:47
↓ 4 callers
Function
isTransformObject
* Check if a value is a TransformObject (has transform property).
src/pull.ts:51
↓ 4 callers
Function
isTransformObject
* Check if a value is a TransformObject (has transform property).
src/pull.js:104
↓ 4 callers
Function
primitiveToUint8Array
* Convert a primitive chunk to Uint8Array. * - string: UTF-8 encoded * - ArrayBuffer: wrapped as Uint8Array view (no copy) * - ArrayBufferView: con
src/from.js:165
↓ 4 callers
Function
primitiveToUint8Array
* Convert a primitive chunk to Uint8Array. * - string: UTF-8 encoded * - ArrayBuffer: wrapped as Uint8Array view (no copy) * - ArrayBufferView: con
src/from.ts:120
↓ 4 callers
Method
pullFromSource
* Pull next chunk from source into buffer. * Returns a promise that resolves when the pull completes (or immediately if already pulling).
src/share.ts:304
↓ 4 callers
Method
removeAt
* Remove the item at logical `index`, shifting later elements. O(n) worst case. * Used only on rare abort-signal cancellation path.
src/ringbuffer.ts:100
↓ 4 callers
Method
resolvePendingDrains
* Resolve all pending drains with a value.
src/broadcast.ts:638
↓ 4 callers
Function
resume
(n, v)
src/consumers.js:59
↓ 4 callers
Function
resume
(n, v)
src/from.js:54
↓ 4 callers
Function
resume
(n, v)
src/pull.js:63
↓ 4 callers
Function
source
()
benchmarks/11-fast-ws-throughput.ts:505
↓ 4 callers
Function
step
(result)
samples/util.js:7
↓ 4 callers
Function
step
(result)
src/share.js:13
↓ 4 callers
Function
step
(result)
src/duplex.js:13
↓ 4 callers
Function
step
(result)
src/broadcast.js:13
↓ 4 callers
Function
step
(result)
src/push.js:13
↓ 4 callers
Function
toHex
(data: Uint8Array)
samples/15-encryption.ts:557
↓ 4 callers
Function
webReadable
(chunks: Uint8Array[])
benchmarks/20-memory-allocations.ts:56
↓ 4 callers
Function
webReadable
(data: Uint8Array[])
benchmarks/21-memory-sustained.ts:59
↓ 4 callers
Method
writeAsync
* Write chunks asynchronously. * - 'strict': Queues if buffer full but rejects if too many pending writes (>= highWaterMark) * - 'block': Waits
src/push.ts:237
↓ 4 callers
Method
writeSync
(chunk: Uint8Array | string)
samples/util.ts:52
↓ 3 callers
Function
bench
(name: string, fn: BenchFn, n: number)
benchmarks/bench-bun-file-streams.ts:281
↓ 3 callers
Function
bench
(name: string, fn: BenchFn, n: number)
benchmarks/bench-deno-file-streams.ts:227
↓ 3 callers
Function
collect
(source: Iterable<Uint8Array[]>)
samples/16-pipeline-sync.ts:19
↓ 3 callers
Function
collectBytes
Collect all bytes from a ReadableStream via reader.read() loop
benchmarks/17-bun-direct-streams.ts:52
↓ 3 callers
Function
computeSpeedup
(a: BenchmarkResult, b: BenchmarkResult)
benchmarks/utils.ts:372
↓ 3 callers
Function
copyToBuffer
(chunk: Uint8Array)
samples/14-compression.ts:27
↓ 3 callers
Function
createIdentity
()
benchmarks/13-fast-ws-transforms.ts:416
↓ 3 callers
Function
createIdentity
()
benchmarks/04-pipelines.ts:318
↓ 3 callers
Function
createIdentity
()
benchmarks/03-transforms.ts:419
↓ 3 callers
Function
createIdentity
()
benchmarks/14-fast-ws-pipelines.ts:418
↓ 3 callers
Function
createTransform
()
benchmarks/04-pipelines.ts:281
↓ 3 callers
Function
dataSource
()
samples/03-branching.ts:76
↓ 3 callers
Function
decode
(data: Uint8Array)
src/duplex.test.ts:14
↓ 3 callers
Function
drainPending
()
benchmarks/bench-bun-file-streams.ts:172
↓ 3 callers
Method
end
(_options?: WriteOptions)
samples/util.ts:67
↓ 3 callers
Method
failSync
Put writer into terminal error state synchronously. Returns false if writer cannot transition.
src/types.ts:200
↓ 3 callers
Function
formatRate
(bytes: number, ms: number)
benchmarks/bench-bun-file-streams.ts:58
↓ 3 callers
Function
formatRate
(bytes: number, ms: number)
benchmarks/bench-deno-file-streams.ts:55
↓ 3 callers
Function
generateBatches
()
benchmarks/02-push-streams.ts:256
↓ 3 callers
Function
isAsyncIterable
* Check if value is an async iterable (has Symbol.asyncIterator).
src/from.ts:83
↓ 3 callers
Function
isUint8ArrayBatch
* Check if result is already a Uint8Array[] (fast path).
src/pull.ts:356
← previous
next →
101–200 of 947, ranked by callers