示例#1
0
 /** @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();
 }
示例#2
0
 /** @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();
 }