MCPcopy Create free account
hub / github.com/dashnowords/imfe / writeString

Function writeString

chapter19/recorder-modified.js:184–188  ·  view source on GitHub ↗
(view, offset, string)

Source from the content-addressed store, hash-verified

182 }
183
184 function writeString(view, offset, string) {
185 for (var i = 0; i < string.length; i++) {
186 view.setUint8(offset + i, string.charCodeAt(i));
187 }
188 }
189
190 function encodeWAV(samples) {
191 var buffer = new ArrayBuffer(44 + samples.length * 2);

Callers 1

encodeWAVFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected