Module: Diff::GDiff::Operations

Defined in:
lib/gdiff.rb

Overview

Operations allowed by the gdiff protocoll

Defined Under Namespace

Classes: Copy, Data

Constant Summary collapse

BYTE =

Define type packs and length

["c", 2**7-1,  1]
UBYTE =
["C", 2**8-1,  1]
USHORT =
["n", 2**16-1, 2]
INT =
["N", 2**31-1, 4]
LONG =
["Q", 2**63-1, 8]
EOS =

Singleton object representing the end of stream operation.

Class.new do 
	def pack # :nodoc:
	  "\0"
	end

	def to_s # :nodoc:
	  "EOS"
	end
end.new