lastIndexOf

open override fun lastIndexOf(value: PolyglotValue, byteOffset: Int?, encoding: String?): Int

Returns the byte index of the last occurrence of value in the buffer after byteOffset, or -1 if it is not found. The value may be a number (coerced into byte size), a string, another buffer, or a Uint8Array. The encoding will be used for string values if available.