module Ronin::Support::Binary

Modules and classes for working with binary data.

## Core-Ext Methods

Public Class Methods

Struct(endian: nil, arch: nil) click to toggle source

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

# File lib/ronin/support/binary/struct.rb, line 828
def self.Struct(endian: nil, arch: nil)
  Struct.translate(endian: endian, arch: arch)
end