module BinData::Base::AutoCallDelayedIO

Public Instance Methods

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