'TransferBuffer action mock.'

def TransferBuffer(self, args):

    response = rdf_client.BufferReference(args)
    offset = min(args.offset, len(self.data))
    response.data = self.data[offset:]
    response.length = len(self.data[offset:])
    return [response]
