Sha256: 545427b65d86cb29d6ae10244f8f8cb2e5d143bf07a80944cfbc30eb79460a06
Contents?: true
Size: 296 Bytes
Versions: 5
Compression:
Stored size: 296 Bytes
Contents
require 'bindata/base_primitive' class ExampleSingle < BinData::BasePrimitive register(self.name, self) private def value_to_binary_string(val) [val].pack("V") end def read_and_return_value(io) io.readbytes(4).unpack("V").at(0) end def sensible_default 0 end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bindata-1.1.0 | spec/example.rb |
bindata-1.0.0 | spec/example.rb |
bindata-0.11.1 | spec/example.rb |
bindata-0.11.0 | spec/example.rb |
bindata-0.10.0 | spec/example.rb |