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

Method writeUInt8

projects/JavaScript/proto/fbe.js:907–913  ·  view source on GitHub ↗

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

(offset, value)

Source from the content-addressed store, hash-verified

905 * @param {!number} value UInt8 value
906 */
907 writeUInt8 (offset, value) {
908 value = +value
909 offset = offset >>> 0
910 offset += this._buffer.offset
911 this._buffer.checkValue(offset, 1, value, 0, 0xFF)
912 this._buffer.buffer[offset] = (value & 0xFF)
913 }
914
915 /**
916 * Write Int16 value into the field model buffer

Callers 11

writeCharMethod · 0.95
setMethod · 0.80
setMethod · 0.80
setMethod · 0.80
setMethod · 0.80
setMethod · 0.80
setMethod · 0.80
setMethod · 0.80
setBeginMethod · 0.80
setMethod · 0.80
setMethod · 0.80

Calls 1

checkValueMethod · 0.45

Tested by

no test coverage detected