Skip to main content

tablesize

Function tablesize 

Source
pub fn tablesize(
    contract: &Contract,
    bf: &BuiltinFunctionCall,
) -> Result<(TableDefinition, String), CodegenError>
Expand description

Generates bytecode for the __tablesize builtin function

Returns a tuple of (TableDefinition, bytecode_string) with the size of the specified jump table. The bytecode is a PUSH instruction with the table size in bytes.