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