Пример #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);
 }
Пример #2
0
 public long write(ByteBuffer bytes) {
   long handle = NSData.getEffectiveAddress(bytes) + bytes.position();
   return write(handle, bytes.remaining());
 }