class BinData::Skip
:length
-
The number of bytes to skip.
does, as well as the following:
Skip objects accept all the params that BinData::BasePrimitive
== Parameters
obj.a #=> “fghij”
obj = A.read(“abcdefghij”)
end
string :a, :read_length => 5
skip :length => 5
class A < BinData::Record
require ‘bindata’
When writing, skip will write:length
number of zero bytes.
seekable, then the bytes are consumed and discarded.
Skip will skip over bytes from the input stream. If the stream is not
def read_and_return_value(io)
def read_and_return_value(io) len = eval_parameter(:length) io.seekbytes(len) "" end
def sensible_default
def sensible_default "" end
def value_to_binary_string(val)
def value_to_binary_string(val) len = eval_parameter(:length) "\000" * len end