MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / readChar

Method readChar

projects/JavaScript/proto/fbe.js:629–632  ·  view source on GitHub ↗

* Read char value from the field model buffer * @this {!FieldModelBase} * @param {!number} offset Offset * @returns {!string} Char value

(offset)

Source from the content-addressed store, hash-verified

627 * @returns {!string} Char value
628 */
629 readChar (offset) {
630 let code = this.readUInt8(offset)
631 return String.fromCharCode(code)
632 }
633
634 /**
635 * Read wide char value from the field model buffer

Callers 2

getMethod · 0.45
getMethod · 0.45

Calls 1

readUInt8Method · 0.95

Tested by

no test coverage detected