class Ronin::Support::Binary::CTypes::ObjectType
Represents a object type that is memory mapped.
@api private
@since 1.0.0
Attributes
size[R]
The size, in bytes, of the memory-mapped type.
@return [Integer]
Public Class Methods
new(size)
click to toggle source
Initializes the memory-mapped type.
@param [Integer] size
The size, in bytes, of the memory-mapped type.
Calls superclass method
# File lib/ronin/support/binary/ctypes/object_type.rb, line 45 def initialize(size) @size = size super( pack_string: if size.finite? "a#{@size}" else 'a*' end ) end