Skip to main content

Documentation Index

Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt

Use this file to discover all available pages before exploring further.

Try it Live

Run Bytecode examples in the interactive playground

bytecode_len(bytecode_t bytecode) size_t

Get bytecode size in bytes.Parameters:
  • bytecode: Bytecode to measure
Returns: size_t - Size in bytesExample:
#include "primitives.h"

bytecode_t code = bytecode_from_hex("0x6001");
size_t length = bytecode_len(code);
printf("Size: %zu\n", length); // 2
bytecode_free(code);
Defined in: primitives.h