code: def WriteFixedString(self, value, length):
          
          towrite = value.encode('utf-8')
          slen = len(towrite)
          if slen > length:
              raise Exception("string longer than fixed length: %s " % length)
          self.WriteBytes(towrite)
          diff = length - slen
  
          while diff > 0:
              self.WriteByte(0)
              diff -= 1
docs: Write a string value to the stream.
  
          Args:
              value (str): value to write to the stream.
              length (int): length of the string to write.