Skip to main content

Module builtin_function

Module builtin_function 

Source
Expand description

Builtin Function Module

Functionsยง

builtin_function_gen
Generates bytecode for all builtin function calls
builtin_pad
Generates a PushValue for left or right padding a byte string to 32 bytes
codesize ๐Ÿ”’
Generates bytecode for the __codesize builtin function
error
Generates a PushValue for the __ERROR builtin function
invalid_arguments_error ๐Ÿ”’
Creates a CodegenError for invalid arguments
invalid_hex_error ๐Ÿ”’
Creates a CodegenError for invalid hex strings
tablesize
Generates bytecode for the __tablesize builtin function
validate_arg_count ๐Ÿ”’
Validates that the builtin function call has exactly the expected number of arguments
validate_hex_string ๐Ÿ”’
Validates that a string contains only hexadecimal characters