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

Method toBytes

projects/JavaScript/proto/int64.js:220–222  ·  view source on GitHub ↗

* Converts the Int64 to its bytes representation * @this {!Int64} * @param {boolean=} le Whether little or big endian, defaults to little endian * @returns {!Array. } Bytes representation

(le = true)

Source from the content-addressed store, hash-verified

218 * @returns {!Array.<number>} Bytes representation
219 */
220 toBytes (le = true) {
221 return le ? this.toBytesLE() : this.toBytesBE()
222 }
223
224 /**
225 * Converts the Int64 to its bytes representation (big endian)

Callers

nothing calls this directly

Calls 2

toBytesLEMethod · 0.95
toBytesBEMethod · 0.95

Tested by

no test coverage detected