MCPcopy Create free account
hub / github.com/angular/dev-infra / utf8DecodeBytes

Function utf8DecodeBytes

github-actions/saucelabs/set-saucelabs-env.js:5012–5021  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

5010 }
5011 function getDecodeSplit(name, list) {
5012 const value = list.get(name, true);
5013 if (value === null) {
5014 return null;
5015 }
5016 return gettingDecodingSplitting(value);
5017 }
5018 var textDecoder = new TextDecoder();
5019 function utf8DecodeBytes(buffer) {
5020 if (buffer.length === 0) {
5021 return "";
5022 }
5023 if (buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) {
5024 buffer = buffer.subarray(3);

Callers 2

multipartFormDataParserFunction · 0.70
parseJSONFromBytesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected