module BinData::Base::AutoCallDelayedIO

Public Instance Methods

initialize_shared_instance() click to toggle source
Calls superclass method
# File lib/bindata/delayed_io.rb, line 176
def initialize_shared_instance
  top_level_set(:delayed_ios, [])
  super
end
num_bytes() click to toggle source
# File lib/bindata/delayed_io.rb, line 189
def num_bytes
  to_binary_s.size
end
read(io) click to toggle source
Calls superclass method
# File lib/bindata/delayed_io.rb, line 181
def read(io)
  super(io) { top_level_get(:delayed_ios).each { |obj| obj.read_now! } }
end
write(io, *args) click to toggle source
Calls superclass method
# File lib/bindata/delayed_io.rb, line 185
def write(io, *args)
  super(io) { top_level_get(:delayed_ios).each { |obj| obj.write_now! } }
end