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

Method toBytes

projects/JavaScript/proto/uuid.js:185–191  ·  view source on GitHub ↗

* Converts the UUID to its bytes representation * @this {!UUID} * @returns {!Array. } Bytes representation

()

Source from the content-addressed store, hash-verified

183 * @returns {!Array.<number>} Bytes representation
184 */
185 toBytes () {
186 let result = []
187 for (let i = 0; i < this.data.length; i++) {
188 result.push(this.data[i])
189 }
190 return result
191 }
192
193 /**
194 * Converts the UUID to string representation in format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'

Callers 1

test_int64.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected