org.robovm.rt.bro.ptr.BytePtr.set()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(67)

本文整理了Java中org.robovm.rt.bro.ptr.BytePtr.set()方法的一些代码示例,展示了BytePtr.set()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BytePtr.set()方法的具体详情如下:
包路径:org.robovm.rt.bro.ptr.BytePtr
类名称:BytePtr
方法名:set

BytePtr.set介绍

[英]Copies src.length bytes from src to the memory pointed to by this BytePtr.
[中]拷贝src。从src到该BytePtr指向的内存的长度字节。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Copies {@code src.length} bytes from {@code src} to the memory pointed to by
 * this {@link BytePtr}.
 * 
 * @param src the source.
 */
public void set(byte[] src) {
  set(src, 0, src.length);
}

代码示例来源:origin: robovm/robovm

/**
 * Creates a new {@link BytePtr} and initializes it with the specified value.
 * 
 * @param value the value.
 */
public BytePtr(byte value) {
  set(value);
}

代码示例来源:origin: robovm/robovm

public CAFPacketTableHeader setPacketDescriptions(byte[] packetDescriptions) {
  BytePtr ptr = new BytePtr();
  ptr.set(packetDescriptions);
  setPacketDescriptions0(ptr);
  return this;
}
/*<members>*/

代码示例来源:origin: robovm/robovm

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo);
}
/**

代码示例来源:origin: robovm/robovm

/**
 * @since Available in iOS 4.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, ReleaseDataCallback releaseCallback) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo, releaseCallback);
}
/**

代码示例来源:origin: robovm/robovm

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, new CGBitmapInfo(alphaInfo.value()));
}
/**

代码示例来源:origin: FlexoVM/flexovm

/**
 * Creates a new {@link BytePtr} and initializes it with the specified value.
 * 
 * @param value the value.
 */
public BytePtr(byte value) {
  set(value);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Creates a new {@link BytePtr} and initializes it with the specified value.
 * 
 * @param value the value.
 */
public BytePtr(byte value) {
  set(value);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Creates a new {@link BytePtr} and initializes it with the specified value.
 * 
 * @param value the value.
 */
public BytePtr(byte value) {
  set(value);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Creates a new {@link BytePtr} and initializes it with the specified value.
 * 
 * @param value the value.
 */
public BytePtr(byte value) {
  set(value);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Copies {@code src.length} bytes from {@code src} to the memory pointed to by
 * this {@link BytePtr}.
 * 
 * @param src the source.
 */
public void set(byte[] src) {
  set(src, 0, src.length);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Copies {@code src.length} bytes from {@code src} to the memory pointed to by
 * this {@link BytePtr}.
 * 
 * @param src the source.
 */
public void set(byte[] src) {
  set(src, 0, src.length);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Copies {@code src.length} bytes from {@code src} to the memory pointed to by
 * this {@link BytePtr}.
 * 
 * @param src the source.
 */
public void set(byte[] src) {
  set(src, 0, src.length);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Copies {@code src.length} bytes from {@code src} to the memory pointed to by
 * this {@link BytePtr}.
 * 
 * @param src the source.
 */
public void set(byte[] src) {
  set(src, 0, src.length);
}

代码示例来源:origin: com.gluonhq/robovm-cocoatouch

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo);
}
/**

代码示例来源:origin: com.gluonhq/robovm-cocoatouch

/**
 * @since Available in iOS 4.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, ReleaseDataCallback releaseCallback) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo, releaseCallback);
}
/**

代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo);
}
/**

代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch

/**
 * @since Available in iOS 4.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, ReleaseDataCallback releaseCallback) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo, releaseCallback);
}
/**

代码示例来源:origin: com.gluonhq/robovm-cocoatouch

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, new CGBitmapInfo(alphaInfo.value()));
}
/**

代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch

/**
 * @since Available in iOS 2.0 and later.
 */
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo) {
  BytePtr ptr = new BytePtr();
  ptr.set(data);
  return create(ptr.as(IntPtr.class), width, height, bitsPerComponent, bytesPerRow, space, new CGBitmapInfo(alphaInfo.value()));
}
/**

相关文章