MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / readFourCC

Method readFourCC

modules/data/wavreader/wavreader.js:80–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 readFourCC() {
81 let result = String.fromCharCode(this.wav.getUint8(this.position), this.wav.getUint8(this.position + 1),
82 this.wav.getUint8(this.position + 2), this.wav.getUint8(this.position + 3));
83 this.position += 4;
84 if (this.position > this.waveSize)
85 throw new Error("eof");
86 return result;
87 }
88 readUint32() {
89 let result = this.wav.getUint32(this.position, true);
90 this.position += 4;

Callers 1

constructorMethod · 0.95

Calls 1

getUint8Method · 0.80

Tested by

no test coverage detected