parseChunked

expect abstract fun parseChunked(bufferSize: Int = DEFAULT_PARSE_BUFFER_SIZE, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument

Parse an HTML document by calling getChunk to fill the provided ByteArray until no more data is available.

Javascript Note: node-html-parser only supports parsing strings, so the entire file will be loaded into memory and parsed in one go.

Return

The parsed document as a KtSoupDocument.

Parameters

bufferSize

The size of the buffer to provide to getChunk.

getChunk

A function to fill the provided buffer, returning the number of bytes or -1 when exhausted.

actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument