code: def nn_allocmsg(size, type):
      "allocate a message"
      pointer = _nn_allocmsg(size, type)
      if pointer is None:
          return None
      return _create_message(pointer, sizef nn_allocmsg(size, type):
      "allocate a message"
      pointer = _nn_allocmsg(size, type)
      if pointer is None:
          return None
      return _create_message(pointer, size)
docs: allocate a message