MCPcopy Create free account
hub / github.com/denoland/std / parseXmlRecordsFromBytes

Function parseXmlRecordsFromBytes

xml/parse_records.ts:169–179  ·  view source on GitHub ↗
(
  source: AsyncIterable<Uint8Array>,
  createCallbacks: (emit: (record: T) => void) => XmlEventCallbacks,
  options: ParseStreamOptions = {},
)

Source from the content-addressed store, hash-verified

167 * ```
168 */
169export function parseXmlRecordsFromBytes<T>(
170 source: AsyncIterable<Uint8Array>,
171 createCallbacks: (emit: (record: T) => void) => XmlEventCallbacks,
172 options: ParseStreamOptions = {},
173): AsyncGenerator<T> {
174 return parseXmlRecords(
175 decodeAsyncIterable(source),
176 createCallbacks,
177 options,
178 );
179}

Callers 1

Calls 2

decodeAsyncIterableFunction · 0.90
parseXmlRecordsFunction · 0.85

Tested by

no test coverage detected