* Collect all bytes from a sync source. * @param {Iterable } source * @param {{ limit?: number }} [options] * @returns {Uint8Array}
(source, options = kNullPrototype)
| 227 | * @returns {Uint8Array} |
| 228 | */ |
| 229 | function bytesSync(source, options = kNullPrototype) { |
| 230 | validateSyncConsumerOptions(options); |
| 231 | return concatBytes(collectSync(source, options.limit)); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Collect and decode text from a sync source. |
no test coverage detected
searching dependent graphs…