MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / isFirstByteOf3ByteChar

Function isFirstByteOf3ByteChar

src/pkg/utils/istextorbinary.ts:195–197  ·  view source on GitHub ↗
(byte: number)

Source from the content-addressed store, hash-verified

193}
194
195function isFirstByteOf3ByteChar(byte: number) {
196 return byte >> 4 === 14; // 1110xxxx?
197}
198
199function isFirstByteOf2ByteChar(byte: number) {
200 return byte >> 5 === 6; // 110xxxxx?

Callers 2

getChunkBeginFunction · 0.85
getChunkEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected