code: def encode(self, value):
          '''
          :param value: value to encode
          '''
          packed = pack(self.fmt, value)
          return Bits(bytes=packedf encode(self, value):
          '''
          :param value: value to encode
          '''
          packed = pack(self.fmt, value)
          return Bits(bytes=packed)
docs: :param value: value to encode