Example #1
0
 public NSOutputStream(ByteBuffer bytes) {
   super((SkipInit) null);
   if (bytes == null) {
     throw new NullPointerException("bytes");
   }
   long handle = NSData.getEffectiveAddress(bytes) + bytes.position();
   initObject(init(handle, bytes.remaining()));
   addStrongRef(bytes);
 }
Example #2
0
 public long write(ByteBuffer bytes) {
   long handle = NSData.getEffectiveAddress(bytes) + bytes.position();
   return write(handle, bytes.remaining());
 }