/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. Does unsigned * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
public NSIndexPath(long[] indexes) { super((SkipInit) null); if (indexes == null) { throw new NullPointerException("indexes"); } MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, indexes.length); p.set(indexes); initObject(init(p, indexes.length)); }
public void setVertexBuffers(MTLBuffer[] buffers, long[] offsets, NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setVertexBuffers(bptr, lptr, range); } public void setVertexTextures(MTLTexture[] textures, NSRange range) {
public void setFragmentBuffers(MTLBuffer[] buffers, long[] offsets, NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setFragmentBuffers(bptr, lptr, range); } public void setFragmentTextures(MTLTexture[] textures, NSRange range) {
public void setBuffers(MTLBuffer[] buffers, long[] offsets, @ByVal NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setBuffers(bptr, lptr, range); } public void setTextures(MTLTexture[] textures, @ByVal NSRange range) {
/** * @throws OSStatusException * @since Available in iOS 8.0 and later. */ public CMSampleBuffer createReady(CMBlockBuffer dataBuffer, CMFormatDescription formatDescription, @MachineSizedSInt long numSamples, CMSampleTimingInfo[] sampleTimingArray, long[] sampleSizeArray) throws OSStatusException { if (sampleTimingArray == null) { throw new NullPointerException("sampleTimingArray"); } if (sampleSizeArray == null) { throw new NullPointerException("sampleSizeArray"); } long refconId = CMSampleBuffer.refconId.getAndIncrement(); CMSampleTimingInfo sampleTimingPtr = Struct.allocate(CMSampleTimingInfo.class, sampleTimingArray.length); sampleTimingPtr.update(sampleTimingArray); MachineSizedUIntPtr sampleSizePtr = Struct.allocate(MachineSizedUIntPtr.class, sampleSizeArray.length); sampleSizePtr.set(sampleSizeArray); CMSampleBufferPtr ptr = new CMSampleBufferPtr(); OSStatus status = createReady0(null, dataBuffer, formatDescription, numSamples, sampleTimingArray.length, sampleTimingPtr, sampleSizeArray.length, sampleSizePtr, ptr); if (OSStatusException.throwIfNecessary(status)) { CMSampleBuffer buffer = ptr.get(); buffer.localRefconId = refconId; return buffer; } return null; } /**
sampleSizePtr.set(sampleSizeArray);
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. Does unsigned * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. Does unsigned * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. Does unsigned * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedUIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
public NSIndexPath(long[] indexes) { super((SkipInit) null); if (indexes == null) { throw new NullPointerException("indexes"); } MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, indexes.length); p.set(indexes); initObject(init(p, indexes.length)); }
public NSIndexPath(long[] indexes) { super((SkipInit) null); if (indexes == null) { throw new NullPointerException("indexes"); } MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, indexes.length); p.set(indexes); initObject(init(p, indexes.length)); }
public void setVertexBuffers(MTLBuffer[] buffers, long[] offsets, NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setVertexBuffers(bptr, lptr, range); } public void setVertexTextures(MTLTexture[] textures, NSRange range) {
public void setFragmentBuffers(MTLBuffer[] buffers, long[] offsets, NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setFragmentBuffers(bptr, lptr, range); } public void setFragmentTextures(MTLTexture[] textures, NSRange range) {
public void setFragmentBuffers(MTLBuffer[] buffers, long[] offsets, NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setFragmentBuffers(bptr, lptr, range); } public void setFragmentTextures(MTLTexture[] textures, NSRange range) {
public void setBuffers(MTLBuffer[] buffers, long[] offsets, @ByVal NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setBuffers(bptr, lptr, range); } public void setTextures(MTLTexture[] textures, @ByVal NSRange range) {
public void setBuffers(MTLBuffer[] buffers, long[] offsets, @ByVal NSRange range) { MTLBuffer.MTLBufferPtr bptr = new MTLBuffer.MTLBufferPtr(); bptr.set(buffers); MachineSizedUIntPtr lptr = new MachineSizedUIntPtr(); lptr.set(offsets); setBuffers(bptr, lptr, range); } public void setTextures(MTLTexture[] textures, @ByVal NSRange range) {