'Encode this L{_OPTVariableOption} to bytes.
@type strio: L{file}
@param strio: the byte representation of this
L{_OPTVariableOption} will be written to this file.
@type compDict: L{dict} or L{None}
@param compDict: A dictionary of backreference addresses that
have already been written to this stream and that may
be used for DNS name compression.'

def encode(self, strio, compDict=None):

    strio.write((struct.pack(self._fmt, self.code, len(self.data)) + self.data))
