MCPcopy Index your code
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / #readUserComment

Method #readUserComment

web/js/workflowImage.js:271–279  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

269 }
270
271 #readUserComment(tag) {
272 this.#reader.seek(this.#start + tag.offset, false);
273 const encoding = this.#reader.read(8);
274 if (encoding !== 0x45444f43494e55n) {
275 throw new Error("Unable to read non-Unicode data");
276 }
277 const decoder = new TextDecoder("utf-16be");
278 return decoder.decode(new DataView(this.#reader.view.buffer, this.#reader.offset, tag.count - 8));
279 }
280
281 #readExifTag(exifTag) {
282 const EXIF_USER_COMMENT = 0x9286;

Callers 1

#readExifTagMethod · 0.95

Calls 2

seekMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected