Package org.apache.qpid.proton.jni

Examples of org.apache.qpid.proton.jni.pn_decimal128_t


    {
        byte[] data = new byte[16];
        ByteBuffer buf = ByteBuffer.wrap(data);
        buf.putLong(d.getMostSignificantBits());
        buf.putLong(d.getLeastSignificantBits());
        pn_decimal128_t decimal128_t = new pn_decimal128_t();
        decimal128_t.setBytes(data);
        Proton.pn_data_put_decimal128(_impl,decimal128_t);
    }
View Full Code Here


    @Override
    @ProtonCEquivalent("pn_data_get_decimal128")
    public Decimal128 getDecimal128()
    {
        pn_decimal128_t b = Proton.pn_data_get_decimal128(_impl);
        ByteBuffer buf = ByteBuffer.wrap(b.getBytes());
        return new Decimal128(buf.getLong(),buf.getLong());
    }
View Full Code Here

            {
                return (char) value.getAs_char();
            }
            else if(pn_type_t.PN_DECIMAL128.equals(type))
            {
                pn_decimal128_t d128 = value.getAs_decimal128();

                // TODO
            }
            else if(pn_type_t.PN_DECIMAL64.equals(type))
            {
View Full Code Here

    {
        byte[] data = new byte[16];
        ByteBuffer buf = ByteBuffer.wrap(data);
        buf.putLong(d.getMostSignificantBits());
        buf.putLong(d.getLeastSignificantBits());
        pn_decimal128_t decimal128_t = new pn_decimal128_t();
        decimal128_t.setBytes(data);
        Proton.pn_data_put_decimal128(_impl,decimal128_t);
    }
View Full Code Here

    @Override
    @ProtonCEquivalent("pn_data_get_decimal128")
    public Decimal128 getDecimal128()
    {
        pn_decimal128_t b = Proton.pn_data_get_decimal128(_impl);
        ByteBuffer buf = ByteBuffer.wrap(b.getBytes());
        return new Decimal128(buf.getLong(),buf.getLong());
    }
View Full Code Here

            {
                return (char) value.getAs_char();
            }
            else if(pn_type_t.PN_DECIMAL128.equals(type))
            {
                pn_decimal128_t d128 = value.getAs_decimal128();

                // TODO
            }
            else if(pn_type_t.PN_DECIMAL64.equals(type))
            {
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.jni.pn_decimal128_t

Copyright © 2018 www.massapicom. 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.