Class: Rubycc::Front::StringInit

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/initializer_resolver.rb

Overview

A run of literal bytes a string initializer places at offset (the raw string-literal bytes, without the terminating NUL). The caller zero-fills the whole object first, so the NUL and any trailing array slots come for free and are not recorded here.

Instance Attribute Summary collapse

Instance Attribute Details

#bytesObject (readonly)

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



26
27
28
# File 'lib/rubycc/front/initializer_resolver.rb', line 26

def bytes
  @bytes
end

#offsetObject (readonly)

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



26
27
28
# File 'lib/rubycc/front/initializer_resolver.rb', line 26

def offset
  @offset
end