Class: VCDIFF::VCDIFFDeltaEncoding

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/vcdiff/records.rb

Instance Method Summary collapse

Instance Method Details

#addresses_compressed?Boolean

VCD_ADDRCOMP bit value, for the addresses for the COPY instructions

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


49
50
51
# File 'lib/vcdiff/records.rb', line 49

def instructions_compressed?
  delta_indicator[1] == 1
end