code: def _pack(self):
          
          data = ByteBuffer()
          if not hasattr(self, '__fields__'):
              return data.array
  
          for field in self.__fields__:
              field.encode(self, data)
          return data.array
docs: Pack the message and return an array.