Class: Haxor::Token::Int64

Inherits:
Data show all
Defined in:
lib/haxor/token/int64.rb

Direct Known Subclasses

Cmd, Pointer

Instance Attribute Summary

Attributes inherited from Base

#absolute_addr

Instance Method Summary collapse

Methods inherited from Data

#initialize

Constructor Details

This class inherits a constructor from Haxor::Token::Data

Instance Method Details

#size ⇒ Object



8
9
10
# File 'lib/haxor/token/int64.rb', line 8

def size
  8
end

#to_bytecode ⇒ Object



4
5
6
# File 'lib/haxor/token/int64.rb', line 4

def to_bytecode
  [@data].pack('q<')
end

#to_s ⇒ Object



12
13
14
# File 'lib/haxor/token/int64.rb', line 12

def to_s
  "int64 -> #{@data}"
end