Re-sizes the :class:`Stream` field by appending zero bytes or
        removing bytes from the end.

        :param int size: :class:`Stream` size in number of bytes.

def resize(self, size):
        """ Re-sizes the :class:`Stream` field by appending zero bytes or
        removing bytes from the end.

        :param int size: :class:`Stream` size in number of bytes.
        """
        if isinstance(self._data, Stream):
            self._data.resize(size)