module Ronin::Support::Binary
Modules and classes for working with binary data.
## Core-Ext Methods
-
{::Array#pack}
-
{::Float#pack}
-
{::Integer#pack}
-
{::Integer#to_uint8}
-
{::Integer#to_uint16}
-
{::Integer#to_uint32}
-
{::Integer#to_uint64}
-
{::Integer#to_int8}
-
{::Integer#to_int16}
-
{::Integer#to_int32}
-
{::Integer#to_int64}
-
{::String#unpack}
-
{::String#unpack1}
Public Class Methods
Source
# File lib/ronin/support/binary/struct.rb, line 828 def self.Struct(endian: nil, arch: nil) Struct.translate(endian: endian, arch: arch) end
Defines a new {Struct} sub-class with the desired endian-ness or architecture.
@param [:little, :big, :net, nil] endian
The desired endian-ness.
@param [:x86, :x86_64,
:ppc, :ppc64, :mips, :mips_le, :mips_be, :mips64, :mips64_le, :mips64_be, :arm, :arm_le, :arm_be, :arm64, :arm64_le, :arm64_be, nil] arch The new architecture for the struct.
@return [Class<Binary::Struct>]
The configured {Struct} sub-class.
@see Struct.translate