MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / #getStringType

Method #getStringType

modules/network/ble/btutils.js:450–454  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

448 }
449
450 #getStringType(index) {
451 const adLength = this.#data[index];
452 const start = index + 2, end = start + adLength - 1;
453 return String.fromArrayBuffer(this.#buffer.slice(start, end));
454 }
455 #getUUID16ListType(index) {
456 const adLength = this.#data[index];
457 const count = (adLength - 1) / 2;

Callers 2

completeNameMethod · 0.95
shortNameMethod · 0.95

Calls 2

fromArrayBufferMethod · 0.65
sliceMethod · 0.65

Tested by

no test coverage detected