MCPcopy
hub / github.com/mattdiamond/Recorderjs / writeString

Function writeString

lib/recorder.js:164–168  ·  view source on GitHub ↗
(view, offset, string)

Source from the content-addressed store, hash-verified

162 }
163
164 function writeString(view, offset, string) {
165 for (var i = 0; i < string.length; i++) {
166 view.setUint8(offset + i, string.charCodeAt(i));
167 }
168 }
169
170 function encodeWAV(samples) {
171 var buffer = new ArrayBuffer(44 + samples.length * 2);

Callers 2

encodeWAVFunction · 0.85
encodeWAVMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected