Class: YTLJit::FileOutputStream

Inherits:
OutputStream show all
Defined in:
lib/ytljit/asm.rb

Instance Method Summary collapse

Methods inherited from OutputStream

#asm=, #base_address, #var_base_address

Constructor Details

#initialize(st) ⇒ FileOutputStream

Returns a new instance of FileOutputStream.



75
76
77
# File 'lib/ytljit/asm.rb', line 75

def initialize(st)
  @stream = st
end

Instance Method Details

#emit(code) ⇒ Object



79
80
81
# File 'lib/ytljit/asm.rb', line 79

def emit(code)
  @stream.write(code)
end