lib/bindata/virtual.rb in bindata-2.3.0 vs lib/bindata/virtual.rb in bindata-2.3.1

- old
+ new

@@ -28,15 +28,17 @@ # of this evaluated parameter is false. # [<tt>:value</tt>] The virtual object will always have this value. # class Virtual < BinData::BasePrimitive - def value_to_binary_string(val) - "" + def do_read(io) end - def read_and_return_value(io) - nil + def do_write(io) + end + + def do_num_bytes + 0.0 end def sensible_default nil end