Skip to main content
Module

x/aleph/std.ts>bytes.findLastIndex

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function bytes.findLastIndex
import { bytes } from "https://deno.land/x/aleph@v0.2.28/std.ts";
const { findLastIndex } = bytes;

Find last index of binary pattern from a. If not found, then return -1.

Parameters

source: Uint8Array

source array

pat: Uint8Array

pattern to find in source array

Returns

number