MCPcopy
hub / github.com/di-sukharev/opencommit / utf8DecodeBytes

Function utf8DecodeBytes

out/cli.cjs:52424–52433  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

52422 return promise.promise;
52423 }
52424 await fullyReadBody(object[kState].body, successSteps, errorSteps);
52425 return promise.promise;
52426 }
52427 function bodyUnusable(body) {
52428 return body != null && (body.stream.locked || util4.isDisturbed(body.stream));
52429 }
52430 function utf8DecodeBytes(buffer) {
52431 if (buffer.length === 0) {
52432 return "";
52433 }
52434 if (buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) {
52435 buffer = buffer.subarray(3);
52436 }

Callers 1

parseJSONFromBytesFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…