Examples of Short


Examples of com.sun.jna.platform.win32.WinDef.SHORT

    public void testSafeArrayPutGetElement() throws Exception {
        SAFEARRAY varArray = OleAutoUtil.createVarArray(10);

        for (int i = 0; i < 10; i++) {
            VARIANT variant = new VARIANT(new SHORT(i + i*100));
            //System.out.println(variant.toString(true));
            OleAutoUtil.SafeArrayPutElement(varArray, i, variant);
        }

        assertTrue(varArray != null);
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.SHORT

    public VariantTest() {
    }

    public void testVariantClear() {
        VARIANT variant = new VARIANT(new SHORT(33333));
        HRESULT hr = OleAuto.INSTANCE.VariantClear(variant.getPointer());

        assertTrue("hr: " + hr.intValue(), hr.intValue() == 0);
    }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.SHORT

        assertTrue("hr: " + hr.intValue(), hr.intValue() == 0);
    }

    public void testVariantCopyShort() {
        VARIANT variantSource = new VARIANT(new SHORT(33333));
        VARIANT variantDest = new VARIANT();

        //System.out.println(variantSource.toString(true));
        HRESULT hr = OleAuto.INSTANCE.VariantCopy(variantDest.getPointer(),
                                                  variantSource);
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.SHORT

    public VariantTest() {
    }

    public void testVariantClear() {
        VARIANT variant = new VARIANT(new SHORT(33333));
        HRESULT hr = OleAuto.INSTANCE.VariantClear(variant.getPointer());

        assertTrue("hr: " + hr.intValue(), hr.intValue() == 0);
    }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.SHORT

        assertTrue("hr: " + hr.intValue(), hr.intValue() == 0);
    }

    public void testVariantCopyShort() {
        VARIANT variantSource = new VARIANT(new SHORT(33333));
        VARIANT variantDest = new VARIANT();

        //System.out.println(variantSource.toString(true));
        HRESULT hr = OleAuto.INSTANCE.VariantCopy(variantDest.getPointer(),
                                                  variantSource);
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Short

        }
        if (Byte.class.equals(tag.type)) {
            return new Byte(tagCode, content);
        }
        if (Short.class.equals(tag.type)) {
            return new Short(tagCode, content);
        }
        if (Int.class.equals(tag.type)) {
            return new Int(tagCode, content);
        }
        if (OctetString.class.equals(tag.type)) {
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Short

        }
        if (Byte.class.isAssignableFrom(tag.type)) {
            return new Byte(tagCode, content);
        }
        if (Short.class.isAssignableFrom(tag.type)) {
            return new Short(tagCode, content);
        }
        if (Int.class.isAssignableFrom(tag.type)) {
            return new Int(tagCode, content);
        }
        if (OctetString.class.isAssignableFrom(tag.type)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.