本文整理了Java中org.robovm.rt.bro.ptr.BytePtr.get()
方法的一些代码示例,展示了BytePtr.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BytePtr.get()
方法的具体详情如下:
包路径:org.robovm.rt.bro.ptr.BytePtr
类名称:BytePtr
方法名:get
[英]Copies dst.length bytes from the memory pointed to by this BytePtr to dst.
[中]复制dst。从这个BytePtr指向的内存到dst的长度字节。
代码示例来源:origin: robovm/robovm
/**
* Copies {@code n} bytes from the memory pointed to by this {@link BytePtr}
* to a new {@code byte[]} instance.
*
* @param n the number of bytes to copy.
* @return the {@code byte[]}.
*/
public byte[] toByteArray(int n) {
byte[] result = new byte[n];
get(result);
return result;
}
代码示例来源:origin: robovm/robovm
/**
* Copies {@code dst.length} bytes from the memory pointed to by this
* {@link BytePtr} to {@code dst}.
*
* @param dst the destination.
*/
public void get(byte[] dst) {
get(dst, 0, dst.length);
}
代码示例来源:origin: robovm/robovm
public byte byteValue() {
VoidPtr ptr = new VoidPtr();
getValue(CFNumberType.SInt8Type, ptr);
return ptr.as(BytePtr.class).get();
}
public short shortValue() {
代码示例来源:origin: robovm/robovm
/**
* @throws OSStatusException
* @since Available in iOS 4.0 and later.
*/
public CMTextJustification getVerticalJustification() throws OSStatusException {
BytePtr ptr = new BytePtr();
OSStatus status = getJustification0(null, ptr);
OSStatusException.throwIfNecessary(status);
return CMTextJustification.valueOf(ptr.get());
}
/**
代码示例来源:origin: robovm/robovm
/**
* @throws OSStatusException
* @since Available in iOS 4.0 and later.
*/
public CMTextJustification getHorizontalJustification() throws OSStatusException {
BytePtr ptr = new BytePtr();
OSStatus status = getJustification0(ptr, null);
OSStatusException.throwIfNecessary(status);
return CMTextJustification.valueOf(ptr.get());
}
/**
代码示例来源:origin: robovm/robovm
public CTLineBreakMode getLineBreakMode() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.LineBreakMode, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTLineBreakMode.valueOf(ptr.get());
}
public CTWritingDirection getBaseWritingDirection() {
代码示例来源:origin: robovm/robovm
public CTWritingDirection getBaseWritingDirection() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTWritingDirection.valueOf(ptr.get());
}
public double getFirstLineHeadIndent() {
代码示例来源:origin: robovm/robovm
public CTTextAlignment getAlignment() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.Alignment, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTTextAlignment.valueOf(ptr.get());
}
public CTLineBreakMode getLineBreakMode() {
代码示例来源:origin: MobiVM/robovm
/**
* Copies {@code n} bytes from the memory pointed to by this {@link BytePtr}
* to a new {@code byte[]} instance.
*
* @param n the number of bytes to copy.
* @return the {@code byte[]}.
*/
public byte[] toByteArray(int n) {
byte[] result = new byte[n];
get(result);
return result;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Copies {@code dst.length} bytes from the memory pointed to by this
* {@link BytePtr} to {@code dst}.
*
* @param dst the destination.
*/
public void get(byte[] dst) {
get(dst, 0, dst.length);
}
代码示例来源:origin: org.robovm/robovm-rt-common
/**
* Copies {@code dst.length} bytes from the memory pointed to by this
* {@link BytePtr} to {@code dst}.
*
* @param dst the destination.
*/
public void get(byte[] dst) {
get(dst, 0, dst.length);
}
代码示例来源:origin: MobiVM/robovm
/**
* Copies {@code dst.length} bytes from the memory pointed to by this
* {@link BytePtr} to {@code dst}.
*
* @param dst the destination.
*/
public void get(byte[] dst) {
get(dst, 0, dst.length);
}
代码示例来源:origin: org.robovm/robovm-rt-common
/**
* Copies {@code n} bytes from the memory pointed to by this {@link BytePtr}
* to a new {@code byte[]} instance.
*
* @param n the number of bytes to copy.
* @return the {@code byte[]}.
*/
public byte[] toByteArray(int n) {
byte[] result = new byte[n];
get(result);
return result;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Copies {@code n} bytes from the memory pointed to by this {@link BytePtr}
* to a new {@code byte[]} instance.
*
* @param n the number of bytes to copy.
* @return the {@code byte[]}.
*/
public byte[] toByteArray(int n) {
byte[] result = new byte[n];
get(result);
return result;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch
/**
* @throws OSStatusException
* @since Available in iOS 4.0 and later.
*/
public CMTextJustification getVerticalJustification() throws OSStatusException {
BytePtr ptr = new BytePtr();
OSStatus status = getJustification0(null, ptr);
OSStatusException.throwIfNecessary(status);
return CMTextJustification.valueOf(ptr.get());
}
/**
代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch
/**
* @throws OSStatusException
* @since Available in iOS 4.0 and later.
*/
public CMTextJustification getHorizontalJustification() throws OSStatusException {
BytePtr ptr = new BytePtr();
OSStatus status = getJustification0(ptr, null);
OSStatusException.throwIfNecessary(status);
return CMTextJustification.valueOf(ptr.get());
}
/**
代码示例来源:origin: com.gluonhq/robovm-cocoatouch
/**
* @throws OSStatusException
* @since Available in iOS 4.0 and later.
*/
public CMTextJustification getVerticalJustification() throws OSStatusException {
BytePtr ptr = new BytePtr();
OSStatus status = getJustification0(null, ptr);
OSStatusException.throwIfNecessary(status);
return CMTextJustification.valueOf(ptr.get());
}
/**
代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch
public CTWritingDirection getBaseWritingDirection() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTWritingDirection.valueOf(ptr.get());
}
public double getFirstLineHeadIndent() {
代码示例来源:origin: com.gluonhq/robovm-cocoatouch
public CTTextAlignment getAlignment() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.Alignment, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTTextAlignment.valueOf(ptr.get());
}
public CTLineBreakMode getLineBreakMode() {
代码示例来源:origin: com.gluonhq/robovm-cocoatouch
public CTWritingDirection getBaseWritingDirection() {
BytePtr ptr = new BytePtr();
getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class));
return CTWritingDirection.valueOf(ptr.get());
}
public double getFirstLineHeadIndent() {
内容来源于网络,如有侵权,请联系作者删除!