[][src]Function eosio_numstr::symbol_code_length

pub fn symbol_code_length(symbol: u64) -> usize

Gets the length of an EOSIO symbol's code

Examples

use eosio_numstr::symbol_code_length;
assert_eq!(symbol_code_length(1397703940), 3); // 4,EOS
assert_eq!(symbol_code_length(1398362882), 3); // 2,SYS
assert_eq!(symbol_code_length(5138124851399447552), 7); // 0,TESTING