/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getShort</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getShort(long) */ @Override public short getShort(long offset) { boundsCheck(offset, 2); return super.getShort(offset); }
case EvtVarTypeInt16: case EvtVarTypeUInt16: return isArray() ? field1.getPointer().getPointer(0).getShortArray(0, Count) : field1.getPointer().getShort(0); case EvtVarTypeHexInt32: case EvtVarTypeInt32:
public short getValue() { return getPointer().getShort(0); }
result = Byte.valueOf(getByte(offset)); } else if (type == short.class || type == Short.class) { result = Short.valueOf(getShort(offset)); } else if (type == char.class || type == Character.class) { result = Character.valueOf(getChar(offset));
/** * Given a pointer, reads an unsigned short value. * * @param ptr Pointer. * * @param offset Byte offset from the pointer. * * @return Unsigned short. */ public static int getUnsignedShort( Pointer ptr , long offset ) { return ptr.getShort( offset ) & 0x0000ffff ; }
public short getShort(long offset) { return ptr.getShort(offset); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getShort</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getShort(long) */ public short getShort(long offset) { boundsCheck(offset, 2); return super.getShort(offset); }
public short getValue() { return getPointer().getShort(0); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getShort</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getShort(long) */ @Override public short getShort(long offset) { boundsCheck(offset, 2); return super.getShort(offset); }
public short getValue() { return getPointer().getShort(0); }
/** * Gets the value. * * @return the value */ public USHORT getValue() { return new USHORT(getPointer().getShort(0)); } }
/** * Gets the value. * * @return the value */ public WORD getValue() { return new WORD(getPointer().getShort(0)); } }
public VARTYPE getValue() { return new VARTYPE(getPointer().getShort(0)); } }
public VARIANT_BOOL getValue() { return new VARIANT_BOOL(getPointer().getShort(0)); } }
public VARIANT_BOOL getValue() { return new VARIANT_BOOL(getPointer().getShort(0)); } }
public VARIANT_BOOL getValue() { return new VARIANT_BOOL(getPointer().getShort(0)); } }
public USHORT getValue() { return new USHORT(getPointer().getShort(0)); } }
private static class MemberOrder { public int first; public int middle; public int last; }
public static void debug( final EdsBaseRef.ByReference ... obj ) { System.out.println( "----------------" ); for ( final EdsBaseRef.ByReference o : obj ) { if ( o != null && o.getPointer() != null ) { System.out.println( o + ": " + o.getPointer().getShort( 0 ) ); E01_Simple.debug( o.getValue() ); } } }
result = Byte.valueOf(getByte(offset)); } else if (type == short.class || type == Short.class) { result = Short.valueOf(getShort(offset)); } else if (type == char.class || type == Character.class) { result = Character.valueOf(getChar(offset));