Class: VCDIFF::VCDIFFDeltaEncoding
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- VCDIFF::VCDIFFDeltaEncoding
- Defined in:
- lib/vcdiff/records.rb
Instance Method Summary collapse
-
#addresses_compressed? ⇒ Boolean
VCD_ADDRCOMP bit value, for the addresses for the COPY instructions.
-
#data_compressed? ⇒ Boolean
VCD_DATACOMP bit value, for unmatched ADD and RUN data.
-
#instructions_compressed? ⇒ Boolean
VCD_INSTCOMP bit value, for the delta instructions and accompanying sizes.
Instance Method Details
#addresses_compressed? ⇒ Boolean
VCD_ADDRCOMP bit value, for the addresses for the COPY instructions
54 55 56 |
# File 'lib/vcdiff/records.rb', line 54 def addresses_compressed? delta_indicator[2] == 1 end |
#data_compressed? ⇒ Boolean
VCD_DATACOMP bit value, for unmatched ADD and RUN data
43 44 45 |
# File 'lib/vcdiff/records.rb', line 43 def data_compressed? delta_indicator[0] == 1 end |
#instructions_compressed? ⇒ Boolean
VCD_INSTCOMP bit value, for the delta instructions and accompanying sizes
49 50 51 |
# File 'lib/vcdiff/records.rb', line 49 def instructions_compressed? delta_indicator[1] == 1 end |