MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / substringBytes

Function substringBytes

lib/models/blueprint.js:1802–1805  ·  view source on GitHub ↗

* Takes a substring of a string based on byte offsets. * @private * @method substringBytes * @param {string} value : The input string. * @param {number} start : The byte index of the substring start. * @param {number} end : The byte index of the substring end. * @return {string} : The substrin

(value, start, end)

Source from the content-addressed store, hash-verified

1800 * @return {string} : The substring.
1801 */
1802function substringBytes(value, start, end) {
1803 let buf = Buffer.from(value);
1804 return buf.subarray(start, end).toString();
1805}
1806
1807module.exports = Blueprint;

Callers 1

removeTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…