TransactionParser
    Preparing search index...

    Function splitBuffer

    • Split a buffer based on the length of the data in bytes

      By default, this function will check for new line or carriage return control characters and omit these values from the result. Set disableControlCharacterCheck to true if you want to include this in the result

      Parameters

      • buffer: Buffer

        The buffer to split

      • dataBytesLength: number

        Length of the data in bytes

      • OptionaldisableControlCharacterCheck: boolean = false

        If set to true, new line and carriage return values will be included in output

      Returns Buffer<ArrayBufferLike>[]

      buffer Array of buffer items