Method: ErlangBitstream#bit_size
- Defined in:
- lib/utils/erlang_parser.rb
#bit_size(size, type) ⇒ Object
98 99 100 101 102 |
# File 'lib/utils/erlang_parser.rb', line 98 def bit_size(size, type) raise 'Cannot specify size and type at the same time.' if !type.nil? && !size.nil? return (size || 8).to_i if type.nil? TYPES[type] || raise("Cannot handle binary-stream type #{type}") end |