createHostName static method

HostName createHostName(
  1. String hostName
)

Implementation

static HostName createHostName(String hostName) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IHostNameFactory);

  try {
    return IHostNameFactory.fromRawPointer(activationFactory)
        .createHostName(hostName);
  } finally {
    free(activationFactory);
  }
}