# Copyright (C) 2013-2016 all contributors # License: GPL-3.0+ module DTAS::Source::Common # :nodoc: attr_reader :dst_zero_byte # first byte this source object saw attr_reader :dst attr_accessor :requeued # buf - a DTAS::Buffer object (pipe) def dst_assoc(buf) @dst = buf @dst_zero_byte = buf.bytes_xfer + buf.inflight @requeued = false end end