Module: RMasm::IBinIOWriter

Included in:
BinaryDirective
Defined in:
lib/rmasm/binio.rb,
lib/rmasm/binio.rb

Instance Method Summary collapse

Instance Method Details

#_binary_read(binio) ⇒ Object

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/rmasm/binio.rb', line 40

def _binary_read(binio)
  raise NotImplementedError.new
end

#_binary_write(binio) ⇒ Object

Raises:

  • (NotImplementedError)


58
59
60
# File 'lib/rmasm/binio.rb', line 58

def _binary_write(binio)
  raise NotImplementedError.new
end

#binary_read(io) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/rmasm/binio.rb', line 32

def binary_read(io)
  binio = io
  if io.is_a?(IO)
    binio = BinIO.new(io)
  end
  _binary_read(binio)
end

#binary_write(io) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/rmasm/binio.rb', line 50

def binary_write(io)
  binio = io
  if io.is_a?(IO)
    binio = BinIO.new(io)
  end
  _binary_write(binio)
end

#from_binary(str) ⇒ Object

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/rmasm/binio.rb', line 44

def from_binary(str)
  raise NotImplementedError.new
end

#to_binaryObject

Raises:

  • (NotImplementedError)


62
63
64
# File 'lib/rmasm/binio.rb', line 62

def to_binary
  raise NotImplementedError.new
end