MCPcopy
hub / github.com/bcoin-org/bcoin / toWriter

Method toWriter

lib/script/script.js:395–398  ·  view source on GitHub ↗

* Write the script to a buffer writer. * @param {BufferWriter} bw

(bw)

Source from the content-addressed store, hash-verified

393 */
394
395 toWriter(bw) {
396 bw.writeVarBytes(this.raw);
397 return bw;
398 }
399
400 /**
401 * Encode the script to a Buffer. See {@link Script#encode}.

Callers 1

compileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected