/** @since Available in iOS 8.0 and later. */ public static NSInputStream getBoundInputStream(@MachineSizedUInt long bufferSize) { NSInputStream.NSInputStreamPtr ptr = new NSInputStream.NSInputStreamPtr(); getBoundStreams(bufferSize, ptr, new NSOutputStream.NSOutputStreamPtr()); return ptr.get(); }
/** @since Available in iOS 8.0 and later. */ public static NSInputStream getInputStreamToHost(String hostname, @MachineSizedSInt long port) { NSInputStream.NSInputStreamPtr ptr = new NSInputStream.NSInputStreamPtr(); getStreamsToHost(hostname, port, ptr, new NSOutputStream.NSOutputStreamPtr()); return ptr.get(); }