Skip to main content
Go to Latest
method BytesList.prototype.getChunkIndex
import { BytesList } from "https://deno.land/std@0.151.0/bytes/bytes_list.ts";

Find chunk index in which pos locates by binary-search returns -1 if out of range

Parameters

pos: number

Returns

number