MCPcopy Create free account
hub / github.com/Automattic/mongoose / writeToTypedArray

Function writeToTypedArray

bin/mongoose.debug.js:13221–13227  ·  view source on GitHub ↗
(buffer, string, index)

Source from the content-addressed store, hash-verified

13219 * @api private
13220 */
13221var writeToTypedArray = function(buffer, string, index) {
13222 var bytes = stringToBytes(string);
13223 for(var i = 0; i < bytes.length; i++) {
13224 buffer[index + i] = bytes[i];
13225 }
13226 return bytes.length;
13227}
13228
13229/**
13230 * @ignore

Callers 1

packElementFunction · 0.85

Calls 1

stringToBytesFunction · 0.85

Tested by

no test coverage detected