MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / isUtf8ContinuationByte

Function isUtf8ContinuationByte

src/pkg/utils/encoding.ts:57–57  ·  view source on GitHub ↗
(byte: number)

Source from the content-addressed store, hash-verified

55type ByteRange = [number, number];
56
57const isUtf8ContinuationByte = (byte: number) => (byte & 0xc0) === 0x80;
58
59const addSampleRange = (ranges: ByteRange[], data: Uint8Array, start: number, end: number) => {
60 const n = data.length;

Callers 1

addSampleRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected