Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/ronin/support/binary/core_ext/float.rb
Instance Method Summary collapse
-
#pack(argument, **kwargs) ⇒ String
Packs the Float into a String.
Instance Method Details
#pack(argument, **kwargs) ⇒ String
Packs the Float into a String.
The desired architecture of the binary format.
The Operating System name to lookup.
70 71 72 73 74 75 76 77 78 79 |
# File 'lib/ronin/support/binary/core_ext/float.rb', line 70 def pack(argument, **kwargs) case argument when String [self].pack(argument) else types = Ronin::Support::Binary::CTypes.platform(**kwargs) type = types[argument] type.pack(self) end end |