Skip to content

split

split: (buffer, separator?, options?) => object

Defined in: utils/buffers/split.js:35

Splits a Buffer by a separator pattern.

any = ...

Source buffer to split

any

Byte pattern to split on

KMP split options

number = Infinity

Maximum splits to produce

number[]

Pre-computed KMP failure function table

number

Partial KMP match state from prior chunk

object

  • Split result with buffer slices, partial state, and lookup table

buffers: any[]

lookup: number[]

partial: number