Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ronin/support/binary/core_ext/array.rb
Instance Method Summary collapse
-
#pack(*arguments, **kwargs) ⇒ String
Packs the Array into a String.
- #pack_original ⇒ Object
Instance Method Details
#pack(*arguments, **kwargs) ⇒ String
Packs the Array into a String.
The desired architecture to pack the data for.
66 67 68 69 70 71 72 73 |
# File 'lib/ronin/support/binary/core_ext/array.rb', line 66 def pack(*arguments,**kwargs) if (arguments.length == 1 && arguments.first.kind_of?(String)) pack_original(arguments.first) else format = Ronin::Support::Binary::Template.new(arguments,**kwargs) pack_original(format.pack_string) end end |
#pack_original ⇒ Object
23 |
# File 'lib/ronin/support/binary/core_ext/array.rb', line 23 alias pack_original pack |