Returns the length of the input string.
1345 1346 1347 1348 1349 1350 1351 1352
# File 'lib/bitcoin/script.rb', line 1345 def op_size item = @stack[-1] size = case item when String; item.bytesize when Numeric; OpenSSL::BN.new(item.to_s).to_mpi.size - 4 end @stack << size end