Skip to content

Buffers ​

These mnemonics operate on Buffer objects. See CandleVM buffer opcodes for size, value, and bounds rules.

CASM mnemonicCandleVM opcodeOperandsBehavior
buf_newNewBufferdestination, sizeCreates a zero-filled buffer using the size in the source register.
buf_lenBufferLendestination, bufferWrites the buffer's byte length to destination.
buf_getBufferGetdestination, buffer, indexReads the byte at index into destination.
buf_setBufferSetbuffer, index, valueWrites the byte value at index.

Built for the Candle ecosystem · Powered by VitePress.