timeZoneWithName_data_ static method

NSTimeZone? timeZoneWithName_data_(
  1. NSString tzName,
  2. NSData? aData
)

timeZoneWithName:data:

Implementation

static NSTimeZone? timeZoneWithName_data_(
    objc.NSString tzName, objc.NSData? aData) {
  final _ret = _objc_msgSend_22(
      _class_NSTimeZone,
      _sel_timeZoneWithName_data_,
      tzName.pointer,
      aData?.pointer ?? ffi.nullptr);
  return _ret.address == 0
      ? null
      : NSTimeZone.castFromPointer(_ret, retain: true, release: true);
}