Try it Live
Run Bytecode examples in the interactive playground
- C
bytecode_len(bytecode_t bytecode) size_t
Get bytecode size in bytes.Parameters:bytecode: Bytecode to measure
size_t - Size in bytesExample:Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get bytecode size in bytes
bytecode_len(bytecode_t bytecode) size_tbytecode: Bytecode to measuresize_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);
Was this page helpful?
