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

Method writeChar

projects/JavaScript/proto/fbe.js:868–871  ·  view source on GitHub ↗

* Write char value into the field model buffer * @this {!FieldModelBase} * @param {!number} offset Offset * @param {!string} value Char value

(offset, value)

Source from the content-addressed store, hash-verified

866 * @param {!string} value Char value
867 */
868 writeChar (offset, value) {
869 let code = value.charCodeAt(0)
870 this.writeUInt8(offset, code)
871 }
872
873 /**
874 * Write wide char value into the field model buffer

Callers 2

setMethod · 0.80
setMethod · 0.80

Calls 1

writeUInt8Method · 0.95

Tested by

no test coverage detected