Package net.openhft.jpsg

Examples of net.openhft.jpsg.PrimitiveType.formatValue()


                "int size = size();",
                "if (a.length < size)",
                "    a = new " + elemType.standalone + "[size];",
                "if (size == 0) {",
                "    if (a.length > 0)",
                "        a[0] = " + elemType.formatValue("0") + ";",
                "    return a;",
                "}",
                "int resultIndex = 0;"
        );
    }
View Full Code Here


    @Override
    public void end() {
        PrimitiveType elemType = (PrimitiveType) cxt.viewOption();
        gen.lines(
                "if (a.length > resultIndex)",
                "    a[resultIndex] = " + elemType.formatValue("0") + ";"
        );
        gen.ret("a");
    }
}
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.