Files

Class/Module Index [+]

Quicksearch

BinData::Skip

Skip will skip over bytes from the input stream. If the stream is not seekable, then the bytes are consumed and discarded.

When writing, skip will write :length number of zero bytes.

require 'bindata'

class A < BinData::Record
  skip :length => 5
  string :a, :read_length => 5
end

obj = A.read("abcdefghij")
obj.a #=> "fghij"

Parameters

Skip objects accept all the params that BinData::BasePrimitive does, as well as the following:

:length

The number of bytes to skip.

[Validate]

Generated with the Darkfish Rdoc Generator 2.